Automation · GitHub Actions
Jobs
Cheat sheet · https://pcornel.dk/topic.php?topic=5519
Answer
Jobs in a GitHub Actions workflow run on separate runners, in parallel by default or in order with needs:, and each job is a sequence of steps sharing one workspace.
Remember
- Jobs run in parallel by default.
- needs: creates order and passes outputs.
- Each job runs on its own runner.
First checks
gh run view <run-id>— jobs- needs: dependencies — ordering
- timeout-minutes per job — limits
Verify in this order
workflow → jobs (parallel/needs) → results
Where it usually breaks
Trigger → queue accepted → worker lease/pickup → task running → terminal result → target mutation/read-back → effective runtime state → workload.
GitHub Actions → Jobs · operational reference
| Layer | GitHub Actions → Jobs operational reference |
|---|---|
| Runtime/ownership | GitHub Actions jobs current · identify controller/worker/target ownership before mutation |
| Persistent intent | Versioned configuration/playbook/workflow with explicit dependencies and least-privilege identity |
| Verification | gh run view <run-id> --json jobs --jq ".jobs[] / {name,databaseId,status,conclusion,startedAt,completedAt}" |
| Expected interpretation | Each expected job instance exists with the correct dependencies/matrix/runner/permissions and has a conclusion that is interpreted separately from downstream service state. |
| Recovery boundary | Preserve correlation IDs + pre-state, then verify target/service independently after remediation |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5519