Skip to content

Commit 5b29483

Browse files
Replace github.action_path into GITHUB_ACTION_PATH
Due to the bug of GitHub Action Runner (actions/runner#716), `github.action_path` context value is not evaluated into valid path in containers on self-hosted runners. The corresponding environment variable `GITHUB_ACTION_PATH` always contains valid path even actions running on self-hosted runners, so this PR replaces `github.action_path` context into `GITHUB_ACTION_PATH` environment variable.
1 parent 457b798 commit 5b29483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ runs:
4646
echo "WORKDIR=${{ inputs.workdir }}" >> $GITHUB_ENV
4747
shell: bash
4848
- id: install-aws-cli
49-
run: sudo --preserve-env ${{ github.action_path }}/entrypoint.sh
49+
run: sudo --preserve-env ${GITHUB_ACTION_PATH}/entrypoint.sh
5050
shell: bash
5151
- id: set-output
5252
run: echo "version=$(aws --version)" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)