skills sourced live from GitHub · all skills listed are free · each skill is provided under its author's license.
home / DevOps / Github Actions Skill by @BagelHole
The skill is the devops/ci-cd/github-actions folder inside that repository. Copy it into the folder your agent loads skills from; check your agent's documentation for where that is.
Build, test, and deploy applications using GitHub Actions workflows.
A practical guide to GitHub Actions: workflow file structure, common triggers such as push, pull request and schedules, and then runners, secrets and automating delivery. Good as a reference when you are writing your first few workflows.
The original SKILL.md is organised into these sections:
Written and maintained by @BagelHole. It is published under the MIT license, which allows reuse with attribution. See the author profile. SkillDirectory does not claim authorship: this page adds our own review and links back to the original, and the skill's text belongs to its author.
# GitHub Actions
Automate software workflows directly in your GitHub repository with GitHub Actions.
## When to Use This Skill
Use this skill when:
- Setting up CI/CD pipelines for GitHub repositories
- Automating build, test, and deployment workflows
- Creating reusable workflow components
- Configuring self-hosted runners
- Managing workflow secrets and variables
- Debugging failed workflow runs
## Prerequisites
- GitHub repository with write access
- Understanding of YAML syntax
- For self-hosted runners: server with Docker (optional)
## Workflow File Structure
Workflows are defined in `.github/workflows/` directory:
```yaml
name: CI Pipeline
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
…
Excerpt only, quoted from the author's repository. Open the repository for the complete file.