Automation · GitHub Actions
Workflow
Cheat sheet · https://pcornel.dk/topic.php?topic=5517
Answer
A GitHub Actions workflow is a YAML file in .github/workflows that defines triggers, jobs and steps, such as building, testing and deploying code on every push.
Remember
- Workflows are YAML files in .github/workflows.
- They define triggers, jobs and steps.
- Syntax errors stop the workflow from running.
First checks
actionlint .github/workflows/*.yml— lintgh workflow view <name>— details- permissions: block at top — least privilege
Verify in this order
YAML → triggers → jobs
Where it usually breaks
Commit/input → runner/job → build/test artifact → deployment request → target rollout/reconcile → effective version/config → health/readiness → workload.
GitHub Actions → Workflow · operational reference
| Layer | GitHub Actions → Workflow operational reference |
|---|---|
| Context identity | GitHub Actions current + exact revision/input/target identity |
| Persistent intent | Versioned contract/configuration with explicit ownership and prerequisites |
| Verification | Validate inputs/read current state → exercise bounded operation → independent target read-back |
| Output contract | Preserve structured status/IDs/properties before human formatting |
| Failure boundary | Separate source/input/engine/controller execution from downstream target outcome |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5517