Basic YAML structure for a workflow.
Section: Workflow skeleton
Minimal workflow file
yaml
yaml
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "Hello from GitHub Actions"Explanation
Workflows live under `.github/workflows/*.yml` and define triggers, jobs, and steps.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Workflow skeleton