From 75b96efffd556b8a2746906bafe6ff0b0818ff1e Mon Sep 17 00:00:00 2001 From: Xiang ZHU Date: Sat, 7 Oct 2023 00:19:00 +0200 Subject: [PATCH] GITHUB_ACTION_PATH --- _posts/2023/2023-09-19-github-actions-custom-actions.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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