1
0
mirror of synced 2025-12-30 03:01:36 -05:00

Add runner name to Actions context and env vars (#10230)

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
This commit is contained in:
Ferenc Hammerl
2021-09-24 06:29:06 +02:00
committed by GitHub
parent b6837db8ba
commit e938643620
3 changed files with 3 additions and 0 deletions

View File

@@ -130,6 +130,7 @@ 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.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 %}|

View File

@@ -73,6 +73,7 @@ We strongly recommend that actions use environment variables to access the files
| `GITHUB_SERVER_URL`| Returns the URL of the {% data variables.product.product_name %} server. For example: `https://{% data variables.product.product_url %}`.
| `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_TEMP` | {% data reusables.actions.runner-temp-directory-description %}
{% ifversion not ghae %}| `RUNNER_TOOL_CACHE` | {% data reusables.actions.runner-tool-cache-description %}{% endif %}

View File

@@ -0,0 +1 @@
The name of the runner executing the job.