From 89b802c6714ff89d60b71163ce41da6ee84b48a5 Mon Sep 17 00:00:00 2001 From: Nate Scherer <376408+natescherer@users.noreply.github.com> Date: Fri, 30 Apr 2021 09:48:40 -0400 Subject: [PATCH] Add GITHUB_ACTION_PATH Environment Variable Hello! I added documentation for the GITHUB_ACTIONS_PATH env var that wasn't documented here. I copied the description from https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context with a light edit to indicate we're talking about a variable and not an attribute. --- content/actions/reference/environment-variables.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/actions/reference/environment-variables.md b/content/actions/reference/environment-variables.md index 0681b4a526..5b2d369a38 100644 --- a/content/actions/reference/environment-variables.md +++ b/content/actions/reference/environment-variables.md @@ -58,6 +58,7 @@ We strongly recommend that actions use environment variables to access the files | `GITHUB_RUN_NUMBER` | {% data reusables.github-actions.run_number_description %} | | `GITHUB_JOB` | The [job_id](/actions/reference/workflow-syntax-for-github-actions#jobsjob_id) of the current job. | | `GITHUB_ACTION` | The unique identifier (`id`) of the action. | +| `GITHUB_ACTION_PATH` | The path where your action is located. You can use this path to easily access files located in the same repository as your action. This variable is only supported in composite run steps actions. | | `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 %}. | `GITHUB_ACTOR` | The name of the person or app that initiated the workflow. For example, `octocat`. | | `GITHUB_REPOSITORY` | The owner and repository name. For example, `octocat/Hello-World`. |