From 71b60e1e2c8329bd70161979467ecfd917f4f464 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 17 Oct 2026 09:10:13 +0500 Subject: fix zizmor warnings --- .github/actions/build-threads/action.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.github/actions/build-threads') diff --git a/.github/actions/build-threads/action.yml b/.github/actions/build-threads/action.yml index 8c754b0..86515f7 100644 --- a/.github/actions/build-threads/action.yml +++ b/.github/actions/build-threads/action.yml @@ -11,12 +11,12 @@ inputs: runs: using: composite steps: - - run: | - $version = '${{ inputs.version }}' - $version = if ($version) { "-$version" } else { $version } - + - env: + ARG_BINARY: ${{ inputs.binary }} + ARG_PLATFORM: ${{ inputs.platform }} + run: | $flags = @() - if ('${{ matrix.platform }}' -eq 'x86') { + if ($env:ARG_PLATFORM -eq 'x86') { $flags += '-m32' } $flags += '-std=c++14','-o','test/threads.exe','test/threads.cpp' @@ -24,5 +24,5 @@ runs: $flags += '-lpthread' } - & '${{ inputs.binary }}' $flags + & $env:ARG_BINARY $flags shell: pwsh -- cgit v1.3