Skip to content

Commit bee380f

Browse files
fhammerllucascosti
andauthored
Add new runner variable runner.arch (#12374)
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
1 parent bc4c2a4 commit bee380f

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

content/actions/learn-github-actions/contexts.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ The `runner` context contains information about the runner that is executing the
139139
| Property name | Type | Description |
140140
|---------------|------|-------------|
141141
| `runner.name` | `string` | {% data reusables.actions.runner-name-description %} |
142-
| `runner.os` | `string` | {% data reusables.actions.runner-os-description %} |
142+
| `runner.os` | `string` | {% data reusables.actions.runner-os-description %} |{% if actions-runner-arch-envvars %}
143+
| `runner.arch` | `string` | {% data reusables.actions.runner-arch-description %} |{% endif %}
143144
| `runner.temp` | `string` | {% data reusables.actions.runner-temp-directory-description %} |
144145
| `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 %}|
145146

content/actions/learn-github-actions/environment-variables.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ We strongly recommend that actions use environment variables to access the files
7979
| `GITHUB_API_URL` | Returns the API URL. For example: `{% data variables.product.api_url_code %}`.
8080
| `GITHUB_GRAPHQL_URL` | Returns the GraphQL API URL. For example: `{% data variables.product.graphql_url_code %}`.
8181
| `RUNNER_NAME` | {% data reusables.actions.runner-name-description %}
82-
| `RUNNER_OS` | {% data reusables.actions.runner-os-description %}
82+
| `RUNNER_OS` | {% data reusables.actions.runner-os-description %}{% if actions-runner-arch-envvars %}
83+
| `RUNNER_ARCH` | {% data reusables.actions.runner-arch-description %}{% endif %}
8384
| `RUNNER_TEMP` | {% data reusables.actions.runner-temp-directory-description %}
8485
{% ifversion not ghae %}| `RUNNER_TOOL_CACHE` | {% data reusables.actions.runner-tool-cache-description %}{% endif %}
8586

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Reference: #5727
2+
# Documentation for new runner 'arch' environment variables set by the `runner` app.
3+
versions:
4+
fpt: '*'
5+
ghec: '*'
6+
ghes: '>=3.4'
7+
ghae: 'ghae-issue-5727'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The architecture of the runner executing the job. Possible values are `X86`, `X64`, `ARM`, and `ARM64`.

0 commit comments

Comments
 (0)