Loading...
Loading...
Create custom GitHub Actions (composite, Docker, or JavaScript). Use when building reusable actions, creating custom workflow steps, or packaging logic for distribution. Trigger words include "create action", "custom action", "build action", "composite action", "Docker action".
npx skill4agent add armanzeroeight/fastagent-plugins action-builderaction-name/
├── action.yml # Action metadata
├── README.md # Documentation
└── [implementation] # Type-specific filesname: 'Action Name'
description: 'What the action does'
author: 'Your Name'
inputs:
input-name:
description: 'Input description'
required: true
default: 'default-value'
outputs:
output-name:
description: 'Output description'
value: ${{ steps.step-id.outputs.output-name }}
runs:
using: 'composite|docker|node16'
# Type-specific configurationruns:
using: 'composite'
steps:
- name: Step name
run: echo "Command"
shell: bash
- uses: actions/checkout@v3runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.input-name }}runs:
using: 'node16'
main: 'dist/index.js'jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./ # Test local action
with:
input-name: 'test-value'inputs:
environment:
description: 'Deployment environment'
required: true
region:
description: 'AWS region'
required: false
default: 'us-east-1'echo "output-name=value" >> $GITHUB_OUTPUTcore.setOutput('output-name', 'value');if [ $? -ne 0 ]; then
echo "::error::Operation failed"
exit 1
fitry {
// Action logic
} catch (error) {
core.setFailed(error.message);
}