aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/actions
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-17 13:17:38 +0500
committerEgor Tensin <egor@tensin.name>2026-10-17 13:17:38 +0500
commitcc0329f0f9c3e5202ee04144ac1b0a196d974ade (patch)
treeb21757a13698fae8927437792be18adfc16f09eb /.github/actions
parentREADME: update (diff)
downloadsetup-mingw-cc0329f0f9c3e5202ee04144ac1b0a196d974ade.tar.gz
setup-mingw-cc0329f0f9c3e5202ee04144ac1b0a196d974ade.zip
fix zizmor warnings
Diffstat (limited to '.github/actions')
-rw-r--r--.github/actions/check-cc/action.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/actions/check-cc/action.yml b/.github/actions/check-cc/action.yml
index 9f29631..c388819 100644
--- a/.github/actions/check-cc/action.yml
+++ b/.github/actions/check-cc/action.yml
@@ -7,7 +7,9 @@ inputs:
runs:
using: composite
steps:
- - run: |
+ - env:
+ ARG_VERSION: ${{ inputs.version }}
+ run: |
function Check-Exe {
param(
[Parameter(Mandatory=$true)]
@@ -19,9 +21,10 @@ runs:
echo $output
# Is this really the most stable piece of `gcc --version` output?
- $($output | Select-String -Pattern "This is free software; see the source for copying conditions." -SimpleMatch -Quiet) -or $(throw "Unexpected `$Exe --version` output")
+ $pattern = "This is free software; see the source for copying conditions."
+ $($output | Select-String -Pattern $pattern -SimpleMatch -Quiet) -or $(throw "Unexpected `$Exe --version` output")
- $version = '${{ inputs.version }}'
+ $version = $env:ARG_VERSION
if ($version) {
$($output | Select-String -Pattern $version -SimpleMatch -Quiet) -or $(throw "Unexpected `$Exe --version` output")
}