Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new runner variable runner.arch #12374

Merged
merged 8 commits into from
Dec 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion content/actions/learn-github-actions/contexts.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ The `runner` context contains information about the runner that is executing the
| Property name | Type | Description |
|---------------|------|-------------|
| `runner.name` | `string` | {% data reusables.actions.runner-name-description %} |
| `runner.os` | `string` | {% data reusables.actions.runner-os-description %} |
| `runner.os` | `string` | {% data reusables.actions.runner-os-description %} |{% if actions-runner-arch-envvars %}
| `runner.arch` | `string` | {% data reusables.actions.runner-arch-description %} |{% endif %}
| `runner.temp` | `string` | {% data reusables.actions.runner-temp-directory-description %} |
| `runner.tool_cache` | `string` | {% ifversion ghae %}For instructions on how to make sure your {% data variables.actions.hosted_runner %} has the required software installed, see "[Creating custom images](/actions/using-github-hosted-runners/creating-custom-images)." {% else %} {% data reusables.actions.runner-tool-cache-description %} {% endif %}|

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ We strongly recommend that actions use environment variables to access the files
| `GITHUB_API_URL` | Returns the API URL. For example: `{% data variables.product.api_url_code %}`.
| `GITHUB_GRAPHQL_URL` | Returns the GraphQL API URL. For example: `{% data variables.product.graphql_url_code %}`.
| `RUNNER_NAME` | {% data reusables.actions.runner-name-description %}
| `RUNNER_OS` | {% data reusables.actions.runner-os-description %}
| `RUNNER_OS` | {% data reusables.actions.runner-os-description %}{% if actions-runner-arch-envvars %}
| `RUNNER_ARCH` | {% data reusables.actions.runner-arch-description %}{% endif %}
| `RUNNER_TEMP` | {% data reusables.actions.runner-temp-directory-description %}
{% ifversion not ghae %}| `RUNNER_TOOL_CACHE` | {% data reusables.actions.runner-tool-cache-description %}{% endif %}

Expand Down
7 changes: 7 additions & 0 deletions data/features/actions-runner-arch-envvars.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Reference: #5727
# Documentation for new runner 'arch' environment variables set by the `runner` app.
versions:
fpt: '*'
ghec: '*'
ghes: '>=3.4'
ghae: 'ghae-issue-5727'
1 change: 1 addition & 0 deletions data/reusables/actions/runner-arch-description.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The architecture of the runner executing the job. Possible values are `X86`, `X64`, `ARM`, and `ARM64`.