Skip to content

Commit

Permalink
GITHUB_ACTION_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
copdips committed Oct 6, 2023
1 parent 028f3b6 commit 75b96ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _posts/2023/2023-09-19-github-actions-custom-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ gallery:
## Actions checkout location in workflow

{% raw %}
Actions are automatically checked out by Github Action from the beginning of a workflow run, the checkout path could be found by: env var [$GITHUB_ACTION_PATH](https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables), github context [${{ github.action_path }}](https://docs.github.com/en/actions/learn-github-actions/contexts#github-context).
Actions are automatically checked out by Github Action from the beginning of a workflow run, the checkout path could be found by: env var [$GITHUB_ACTION_PATH](https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables), github context [${{ github.action_path }}](https://docs.github.com/en/actions/learn-github-actions/contexts#github-context). This is very useful when you need to [reference some files or scripts](https://stackoverflow.com/a/73839061/5095636) saved in the same repository as the actions.

```yaml
{% endraw %}

```bash
Expand Down

0 comments on commit 75b96ef

Please sign in to comment.