Skip to content

Commit

Permalink
Work around action path in container issue
Browse files Browse the repository at this point in the history
Fix a known GitHub runners issue where the "github.action_path"
substituted value is incorrect when running in a container [1].  Instead,
use the environment variable "GITHUB_ACTION_PATH".

[1]: actions/runner#2185

Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
  • Loading branch information
seldridge committed Oct 18, 2023
1 parent c750380 commit 1afe64b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,13 @@ runs:
steps:
- name: 'Download release or nightly CIRCT'
shell: bash
# TODO: This uses ${GITHUB_ACTION_PATH} and not ${{ github.action_path }}
# to work around GitHub runners incorrectly substituting the latter when
# running in a container environment [1]. Remove this if this is fixed.
#
# [1]: https://github.com/actions/runner/issues/2185
run: |
${{ github.action_path }}/bin/download-release-or-nightly-circt.sh \
${GITHUB_ACTION_PATH}/bin/download-release-or-nightly-circt.sh \
-f ${{ inputs.file-name }} \
-g ${{ inputs.github-token }} \
-i ${{ inputs.install-dir }} \
Expand Down

0 comments on commit 1afe64b

Please sign in to comment.