Automation · GitHub Actions
Variables
Cheat sheet · https://pcornel.dk/topic.php?topic=5525
Answer
Variables in GitHub Actions are non-secret configuration values set at repository, environment or organization level and read with ${{ vars.NAME }}, plus env: values within workflows.
Remember
- vars holds non-secret configuration.
- env: sets variables in the workflow.
- Never store secrets in variables.
First checks
gh variable list— repo variables- vars context usage — non-secret config
- Environment-level variables — scoping
Verify in this order
vars → workflow → steps
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=5525