Skip to content

Commit

Permalink
Replace github.action_path into GITHUB_ACTION_PATH
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SSW-SCIENTIFIC committed Jun 12, 2023
1 parent 457b798 commit 5b29483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ runs:
echo "WORKDIR=${{ inputs.workdir }}" >> $GITHUB_ENV
shell: bash
- id: install-aws-cli
run: sudo --preserve-env ${{ github.action_path }}/entrypoint.sh
run: sudo --preserve-env ${GITHUB_ACTION_PATH}/entrypoint.sh
shell: bash
- id: set-output
run: echo "version=$(aws --version)" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 5b29483

Please sign in to comment.