Pcornel
Automation · GitHub Actions

Steps

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

Back to the Topic

Answer

Steps are the individual commands or actions in a job, run in order with run: for shell commands or uses: for actions, sharing the workspace and environment.

Remember

  • Steps use run: for shell or uses: for actions.
  • Steps share the job workspace.
  • if: makes steps conditional.

First checks

  • gh run view <run-id> --log — step logs
  • Step names — readability
  • set -euo pipefail in run steps — failure handling

Verify in this order

step → command/action → output

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5520

Confirmation

Confirm action

Continue?