Pcornel
Automation · GitHub Actions

Events

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

Back to the Topic

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

LayerGitHub Actions → Events 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=5518

Confirmation

Confirm action

Continue?