Tools
GitHub Actions Cheat Sheet
Print-ready cheat sheet for GitHub Actions, organized for fast lookup, study, and desk-side use
Sample
What's in this cheat sheet
- Workflow Basics
- Triggers
- Jobs & Steps
- Actions
- Environment Variables
- Secrets
- Matrix Strategy
- Caching
- Artifacts
- Common Patterns
Minimal Workflow
# .github/workflows/ci.yml
name: CI
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "Hello from CI"
Key Concepts
Workflow | YAML file in `.github/workflows/` that defines automation |
Event | Trigger that starts a workflow (push, PR, schedule, etc.) |
Job | Set of steps that run on the same runner |
Step | Individual task — runs a command or uses an action |
Runner | VM that executes jobs (`ubuntu-latest`, `macos-latest`, `windows-latest`) |
Action | Reusable unit of code referenced with `uses:` |
Download the full cheat sheet for all sections, formatted for print
Download PDFDownloads
Choose the treatment that matches how you read
-
Recommended
Standard
B&W, ink-efficient. The default for laser printers and photocopies
Best for Printouts and desk-side reference
-
Color
Warm color accents for on-screen reading or color printers
Best for Screen reading or color printers
-
Reference Card
Maximum density, 4-column layout. Everything on one page
Best for Fast scanning and minimum paper use