Full-stack-skills github-actions
Provides comprehensive guidance for GitHub Actions including workflow creation, CI/CD pipelines, secrets management, matrix strategies, and reusable workflows. Use when the user asks about GitHub Actions, needs to create workflows, automate processes, or configure CI/CD.
install
source · Clone the upstream repo
git clone https://github.com/partme-ai/full-stack-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/partme-ai/full-stack-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/devops-skills/github-actions" ~/.claude/skills/partme-ai-full-stack-skills-github-actions && rm -rf "$T"
manifest:
skills/devops-skills/github-actions/SKILL.mdsource content
When to use this skill
Use this skill whenever the user wants to:
- Create or debug GitHub Actions workflows (
).github/workflows/*.yml - Configure triggers, jobs, steps, secrets, matrix strategies, or reusable workflows
- Integrate checkout, build, test, deploy, and notification steps
- Optimize workflow performance with caching and concurrency controls
How to use this skill
Workflow
- Create workflow file — add YAML to
.github/workflows/ - Define triggers — specify
events (push, pull_request, schedule, etc.)on - Configure jobs and steps — use official and third-party actions
- Test and iterate — push to trigger, check logs, fix failures
Quick Start Example
# .github/workflows/ci.yml name: CI Pipeline on: push: branches: [main] pull_request: branches: [main] jobs: test: runs-on: ubuntu-latest strategy: matrix: node-version: [18, 20] steps: - uses: actions/checkout@v4 - name: Setup Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm ci - run: npm test deploy: needs: test if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: npm ci && npm run build - name: Deploy env: DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} run: ./scripts/deploy.sh
Reusable Workflow Example
# .github/workflows/reusable-build.yml on: workflow_call: inputs: node-version: type: string default: '20' jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: ${{ inputs.node-version }} - run: npm ci && npm run build
Best Practices
- Store tokens and keys in
— never echo sensitive values in logssecrets - Add
andid
to key steps for downstream consumptionoutputs - Cache dependencies with
or built-in setup action cachingactions/cache - Use
to cancel outdated workflow runs on the same branchconcurrency - Pin action versions to a SHA or major version tag for security
Troubleshooting
- Workflow not triggered: Verify the
event matches your branch and event typeon - Permission denied: Check
block and repository settings for GITHUB_TOKEN scopepermissions - Cache miss: Ensure the cache key includes lockfile hash (e.g.,
)hashFiles('**/package-lock.json') - Matrix failures: Use
selectively; check logs per matrix combinationcontinue-on-error
Keywords
github actions, workflow, yaml, CI/CD, automation, matrix strategy, reusable workflows, secrets