Pcornel
Automation · GitHub Actions

Workflow

Cheat sheet · https://pcornel.dk/topic.php?topic=5517

Back to the Topic

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 — lint
  • gh 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

LayerGitHub Actions → Workflow operational reference
Context identityGitHub Actions current + exact revision/input/target identity
Persistent intentVersioned contract/configuration with explicit ownership and prerequisites
VerificationValidate inputs/read current state → exercise bounded operation → independent target read-back
Output contractPreserve structured status/IDs/properties before human formatting
Failure boundarySeparate 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

Confirmation

Confirm action

Continue?