Skip to content

Commit 9b109a6

Browse files
Peter Bengtssonpull[bot]
authored andcommitted
Fix Liquid use in Markdown table (#51034)
1 parent 9a7dcb3 commit 9b109a6

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

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

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -273,17 +273,15 @@ We strongly recommend that actions use variables to access the filesystem rather
273273
| `GITHUB_ACTION` | The name of the action currently running, or the [`id`](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsid) of a step. For example, for an action, `__repo-owner_name-of-action-repo`.<br><br>{% data variables.product.prodname_dotcom %} removes special characters, and uses the name `__run` when the current step runs a script without an `id`. If you use the same script or action more than once in the same job, the name will include a suffix that consists of the sequence number preceded by an underscore. For example, the first script you run will have the name `__run`, and the second script will be named `__run_2`. Similarly, the second invocation of `actions/checkout` will be `actionscheckout2`. |
274274
| `GITHUB_ACTION_PATH` | The path where an action is located. This property is only supported in composite actions. You can use this path to change directories to where the action is located and access other files in that same repository. For example, `/home/runner/work/_actions/repo-owner/name-of-action-repo/v1`. |
275275
| `GITHUB_ACTION_REPOSITORY` | For a step executing an action, this is the owner and repository name of the action. For example, `actions/checkout`. |
276-
| `GITHUB_ACTIONS` | Always set to `true` when {% data variables.product.prodname_actions %} is running the workflow. You can use this variable to differentiate when tests are being run locally or by {% data variables.product.prodname_actions %}.
276+
| `GITHUB_ACTIONS` | Always set to `true` when {% data variables.product.prodname_actions %} is running the workflow. You can use this variable to differentiate when tests are being run locally or by {% data variables.product.prodname_actions %}. |
277277
| `GITHUB_ACTOR` | The name of the person or app that initiated the workflow. For example, `octocat`. |
278-
{%- ifversion actions-oidc-custom-claims %}
279278
| `GITHUB_ACTOR_ID` | {% data reusables.actions.actor_id-description %} |
280-
{%- endif %}
281-
| `GITHUB_API_URL` | Returns the API URL. For example: `{% data variables.product.rest_url %}`.
279+
| `GITHUB_API_URL` | Returns the API URL. For example: `{% data variables.product.rest_url %}`. |
282280
| `GITHUB_BASE_REF` | The name of the base ref or target branch of the pull request in a workflow run. This is only set when the event that triggers a workflow run is either `pull_request` or `pull_request_target`. For example, `main`. |
283281
| `GITHUB_ENV` | The path on the runner to the file that sets variables from workflow commands. The path to this file is unique to the current step and changes for each step in a job. For example, `/home/runner/work/_temp/_runner_file_commands/set_env_87406d6e-4979-4d42-98e1-3dab1f48b13a`. For more information, see "[AUTOTITLE](/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable)." |
284282
| `GITHUB_EVENT_NAME` | The name of the event that triggered the workflow. For example, `workflow_dispatch`. |
285283
| `GITHUB_EVENT_PATH` | The path to the file on the runner that contains the full event webhook payload. For example, `/github/workflow/event.json`. |
286-
| `GITHUB_GRAPHQL_URL` | Returns the GraphQL API URL. For example: `{% data variables.product.graphql_url %}`.
284+
| `GITHUB_GRAPHQL_URL` | Returns the GraphQL API URL. For example: `{% data variables.product.graphql_url %}`. |
287285
| `GITHUB_HEAD_REF` | The head ref or source branch of the pull request in a workflow run. This property is only set when the event that triggers a workflow run is either `pull_request` or `pull_request_target`. For example, `feature-branch-1`. |
288286
| `GITHUB_JOB` | The [job_id](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_id) of the current job. For example, `greeting_job`. |
289287
| `GITHUB_OUTPUT` | The path on the runner to the file that sets the current step's outputs from workflow commands. The path to this file is unique to the current step and changes for each step in a job. For example, `/home/runner/work/_temp/_runner_file_commands/set_output_a50ef383-b063-46d9-9157-57953fc9f3f0`. For more information, see "[AUTOTITLE](/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter)." |
@@ -293,34 +291,22 @@ We strongly recommend that actions use variables to access the filesystem rather
293291
| `GITHUB_REF_PROTECTED` | {% data reusables.actions.ref_protected-description %} |
294292
| `GITHUB_REF_TYPE` | {% data reusables.actions.ref_type-description %} |
295293
| `GITHUB_REPOSITORY` | The owner and repository name. For example, `octocat/Hello-World`. |
296-
{%- ifversion actions-oidc-custom-claims %}
297294
| `GITHUB_REPOSITORY_ID` | {% data reusables.actions.repository_id-description %} |
298-
{%- endif %}
299295
| `GITHUB_REPOSITORY_OWNER` | The repository owner's name. For example, `octocat`. |
300-
{%- ifversion actions-oidc-custom-claims %}
301296
| `GITHUB_REPOSITORY_OWNER_ID` | {% data reusables.actions.repository_owner_id-description %} |
302-
{%- endif %}
303297
| `GITHUB_RETENTION_DAYS` | The number of days that workflow run logs and artifacts are kept. For example, `90`. |
304298
| `GITHUB_RUN_ATTEMPT` | A unique number for each attempt of a particular workflow run in a repository. This number begins at 1 for the workflow run's first attempt, and increments with each re-run. For example, `3`. |
305299
| `GITHUB_RUN_ID` | {% data reusables.actions.run_id_description %} For example, `1658821493`. |
306300
| `GITHUB_RUN_NUMBER` | {% data reusables.actions.run_number_description %} For example, `3`. |
307-
| `GITHUB_SERVER_URL`| The URL of the {% data variables.product.product_name %} server. For example: `https://{% data variables.product.product_url %}`.
301+
| `GITHUB_SERVER_URL`| The URL of the {% data variables.product.product_name %} server. For example: `https://{% data variables.product.product_url %}`. |
308302
| `GITHUB_SHA` | {% data reusables.actions.github_sha_description %} |
309-
{%- ifversion actions-job-summaries %}
310303
| `GITHUB_STEP_SUMMARY` | The path on the runner to the file that contains job summaries from workflow commands. The path to this file is unique to the current step and changes for each step in a job. For example, `/home/runner/_layout/_work/_temp/_runner_file_commands/step_summary_1cb22d7f-5663-41a8-9ffc-13472605c76c`. For more information, see "[AUTOTITLE](/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary)." |
311-
{%- endif %}
312-
{%- ifversion actions-stable-actor-ids %}
313304
| `GITHUB_TRIGGERING_ACTOR` | {% data reusables.actions.github-triggering-actor-description %} |
314-
{%- endif %}
315305
| `GITHUB_WORKFLOW` | The name of the workflow. For example, `My test workflow`. If the workflow file doesn't specify a `name`, the value of this variable is the full path of the workflow file in the repository. |
316-
{%- ifversion actions-oidc-custom-claims %}
317306
| `GITHUB_WORKFLOW_REF` | {% data reusables.actions.workflow-ref-description %} |
318307
| `GITHUB_WORKFLOW_SHA` | {% data reusables.actions.workflow-sha-description %} |
319-
{%- endif %}
320308
| `GITHUB_WORKSPACE` | The default working directory on the runner for steps, and the default location of your repository when using the [`checkout`](https://github.com/actions/checkout) action. For example, `/home/runner/work/my-repo-name/my-repo-name`. |
321-
{%- ifversion actions-runner-arch-envvars %}
322309
| `RUNNER_ARCH` | {% data reusables.actions.runner-arch-description %} |
323-
{%- endif %}
324310
| `RUNNER_DEBUG` | {% data reusables.actions.runner-debug-description %} |
325311
| `RUNNER_NAME` | {% data reusables.actions.runner-name-description %} For example, `Hosted Agent` |
326312
| `RUNNER_OS` | {% data reusables.actions.runner-os-description %} For example, `Windows` |

0 commit comments

Comments
 (0)