Skip to content

Commit 102d26b

Browse files
authored
fix(action): use GITHUB_ACTION_PATH env var instead of context var (#2548)
Fix "No such file or directory" when running in container Known issue: actions/runner#2185 Fixes #2547 Signed-off-by: Titouan Jouffray <titouan.jouffray@gmail.com>
1 parent e9a9a9a commit 102d26b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ runs:
1717
BINSTALL_VERSION: ${{ inputs.version }}
1818
run: |
1919
set -eu
20-
bash "${{ github.action_path }}/install-from-binstall-release.sh"
20+
bash "$GITHUB_ACTION_PATH/install-from-binstall-release.sh"
2121
- name: Install cargo-binstall
2222
if: runner.os == 'Windows'
2323
shell: powershell
2424
env:
2525
BINSTALL_VERSION: ${{ inputs.version }}
26-
run: Set-ExecutionPolicy Unrestricted -Scope Process; iex "${{ github.action_path }}/install-from-binstall-release.ps1"
26+
run: Set-ExecutionPolicy Unrestricted -Scope Process; iex "$Env:GITHUB_ACTION_PATH/install-from-binstall-release.ps1"

0 commit comments

Comments
 (0)