Skip to content

Commit 46b960f

Browse files
Update GitHub Action Path Description (github#29883)
Co-authored-by: Siara <[email protected]>
1 parent af0ff59 commit 46b960f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ We strongly recommend that actions use variables to access the filesystem rather
298298
| ---------|------------ |
299299
| `CI` | Always set to `true`. |
300300
| `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`. |
301-
| `GITHUB_ACTION_PATH` | The path where an action is located. This property is only supported in composite actions. You can use this path to access files located in the same repository as the action. For example, `/home/runner/work/_actions/repo-owner/name-of-action-repo/v1`. |
301+
| `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`. |
302302
| `GITHUB_ACTION_REPOSITORY` | For a step executing an action, this is the owner and repository name of the action. For example, `actions/checkout`. |
303303
| `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 %}.
304304
| `GITHUB_ACTOR` | The name of the person or app that initiated the workflow. For example, `octocat`. |

0 commit comments

Comments
 (0)