Skip to content

Commit

Permalink
Fix 'build.sh: command not found' when running inside container (#10)
Browse files Browse the repository at this point in the history
Put the script path using both the env var, and the context value
for the "github.action_path". This should make the containers
see the script.

Reference:
actions/runner#1762 (comment)
  • Loading branch information
grzuy authored Nov 3, 2023
1 parent 5f62155 commit a62ca47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ runs:
- name: Add the action path to the gh paths to find scripts
shell: bash
run: |
# Both needed because they are unexpectedly different for contianers apparently:
# https://github.com/actions/runner/pull/1762#issuecomment-1105843659
echo "${{ github.action_path }}" >> $GITHUB_PATH
echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
- name: Download cross from GitHub releases
uses: giantswarm/[email protected]
Expand Down

0 comments on commit a62ca47

Please sign in to comment.