Which expression accesses the name of the event that triggered the current workflow run?
Select an answer to reveal the explanation.
Short Explanation and Infographic
The 'github' context is your connection to everything about the run — the repo, ref, actor, and yes, the event name.
Full explanation below image
Full Explanation
The 'github' context contains metadata about the workflow run, including 'github.event_name' which holds the name of the event that triggered the run (e.g., 'push', 'pull_request'). The 'env' context holds environment variables, not github metadata. 'context.event' is not a valid GitHub Actions context. The 'runner' context contains information about the runner machine. Environment variable GITHUB_EVENT_NAME exists but is accessed differently — without the ${{ }} expression syntax for env vars.