diff --git a/_posts/2023/2023-09-19-github-actions-custom-actions.md b/_posts/2023/2023-09-19-github-actions-custom-actions.md index ed91c663..7ac89dff 100644 --- a/_posts/2023/2023-09-19-github-actions-custom-actions.md +++ b/_posts/2023/2023-09-19-github-actions-custom-actions.md @@ -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