diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-17 14:06:33 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-17 14:21:07 +0500 |
| commit | 00e9f83b07d700342e7143bf0cc6245d7323501c (patch) | |
| tree | 6dc67c5dda61e16889e9b94bb2670f1592c716c5 /.github/actions/check-arch/action.yml | |
| parent | consistent short-vs-long parameter ordering (diff) | |
| download | cmake-common-00e9f83b07d700342e7143bf0cc6245d7323501c.tar.gz cmake-common-00e9f83b07d700342e7143bf0cc6245d7323501c.zip | |
fix some zizmor warnings
Diffstat (limited to '.github/actions/check-arch/action.yml')
| -rw-r--r-- | .github/actions/check-arch/action.yml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/actions/check-arch/action.yml b/.github/actions/check-arch/action.yml index b8e4d64..3dce1d1 100644 --- a/.github/actions/check-arch/action.yml +++ b/.github/actions/check-arch/action.yml @@ -10,14 +10,17 @@ inputs: runs: using: composite steps: - - run: | + - env: + ARG_PATH: ${{ inputs.path }} + ARG_EXPECTED: ${{ inputs.expected }} + run: | $script_path = if ($env:CI_TARGET_PE) { Join-Path $env:GITHUB_WORKSPACE 'test' 'scripts' 'verify_arch.ps1' } else { Join-Path $env:GITHUB_WORKSPACE 'test' 'scripts' 'verify_arch.sh' } - $exe_path = (Join-Path '${{ inputs.path }}' 'bin' 'foo') + $env:CI_EXE_EXT + $exe_path = (Join-Path $env:ARG_PATH 'bin' 'foo') + $env:CI_EXE_EXT - & $script_path $exe_path '${{ inputs.expected }}' + & $script_path $exe_path $env:ARG_EXPECTED shell: pwsh |
