github · GitHub Actions Docs
Actions Contexts - GitHub Docs
Explains the various context objects available in GitHub Actions, including how they provide information about the workflow run, the runner environment, the job, the step, and the actor.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Actions Contexts - GitHub Docs
Explains the various context objects available in GitHub Actions, including how they provide information about the workflow run, the runner environment, the job, the step, and the actor.
When To Use
Use when you need to access dynamic metadata such as the triggering event, environment variables, or job status within a GitHub Actions workflow expression.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/actions-workflows-and-contexts-github-docs-workflow-guide.md | A markdown document explaining the concept and usage of contexts within GitHub Actions workflows. | Questions about a markdown document explaining the concept and usage of contexts within GitHub Actions workflows. |
examples/actions-workflows-and-contexts-github-docs-github-actions-contexts-workf.text | A YAML workflow example demonstrating the usage of GitHub Actions context variables like github.ref and GITHUBREF. | Exact payloads, commands, or snippets shown in A YAML workflow example demonstrating the usage of GitHub Actions context variables like github.ref and GITHUBREF. |
What This Skill Covers
-
- GitHub Actions / - Concepts / - Workflows and actions / - Contexts
- Main sections:
In this article,About contexts,Determining when to use contexts.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://docs.github.com/en/actions/concepts/workflows-and-actions/contexts
