From a62ca47f463d3276bffd15824b7d41bbc8d0485d Mon Sep 17 00:00:00 2001 From: Gonzalo <456459+grzuy@users.noreply.github.com> Date: Fri, 3 Nov 2023 12:26:33 -0300 Subject: [PATCH] Fix 'build.sh: command not found' when running inside container (#10) 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: https://github.com/actions/runner/pull/1762#issuecomment-1105843659 --- action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action.yml b/action.yml index 4c5db49..d9060ac 100644 --- a/action.yml +++ b/action.yml @@ -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/install-binary-action@v1.1.0