Automation · GitHub Actions
Events
Cheat sheet · https://pcornel.dk/topic.php?topic=5518
Answer
Events trigger GitHub Actions workflows, defined under on:, such as push, pull_request, schedule, workflow_dispatch for manual runs, release or repository_dispatch from external systems.
Remember
- Workflows start on events such as push, pull_request, schedule or workflow_dispatch.
- Path and branch filters narrow triggers.
- pull_request_target runs with write access; use with care.
First checks
- on: triggers (push, pull_request, workflow_dispatch, schedule) — events
- pull_request_target used carefully — security
gh run list --event <event>— runs per event
Verify in this order
event → filter → workflow
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.
GitHub Actions → Events · operational reference
| Layer | GitHub Actions → Events 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=5518