1
0
mirror of synced 2026-01-06 06:02:35 -05:00

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.
This commit is contained in:
Nate Scherer
2021-04-30 09:48:40 -04:00
committed by GitHub
parent 2095839956
commit 89b802c671

View File

@@ -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`. |