Environment Variable |
Description |
|
|
|
Name of the workflow |
|
Unique number for each run within a repository. This number does not change if you re-run the workflow run. |
|
Unique number for each run of a particular workflow in a repository. This number begins at 1 for the workflow's first run, and increments with each new run. This number does not change if you re-run the workflow run. |
|
The job_id of the current job |
|
Unique identifier (id) of the action |
|
The path where your action is located. You can use this path to access files located in the same repository as your action. This variable is only supported in composite actions |
|
Always set to true
when GitHub Actions is running the workflow. You can use this variable to differentiate when tests are being run locally or by GitHub Actions |
|
The name of the person or app that initiated the workflow |
|
The owner and repository name |
|
The name of the webhook event that triggered the workflow |
|
The path of the file with the complete webhook event payload |
|
The GitHub workspace directory path, initially empty. For example, /home/runner/work/my-repo-name/my-repo-name. The actions/checkout action will check out files, by default a copy of your repository, within this directory |
|
The commit SHA that triggered the workflow |
|
The branch or tag ref that triggered the workflow. For example, refs/heads/feature-branch-1. If neither a branch or tag is available for the event type, the variable will not exist |
|
The branch or tag name that triggered the workflow ru |
|
true
if branch protections are configured for the ref that triggered the workflow run |
|
The type of ref that triggered the workflow run. Valid values are branch
or tag
|
|
Only set for pull request events. The name of the head branch |
|
Only set for pull request events. The name of the base branch |
|
Returns the URL of the GitHub server. For example: https://github.com
|
|
Returns the API URL. For example: https://api.github.com
|
|
Returns the GraphQL API URL. For example: https://api.github.com/graphql
|
|
The name of the runner executing the job |
|
The operating system of the runner executing the job. Possible values are Linux
, Windows
, or macOS
|
|
The architecture of the runner executing the job. Possible values are X86
, X64
, ARM
, and ARM64
|
|
The path to a temporary directory on the runner. This directory is emptied at the beginning and end of each job. Note that files will not be removed if the runner's user account does not have permission to delete them. |
|
The path to the directory containing preinstalled tools for GitHub-hosted runners |