diff options
| author | Egor Tensin <egor@tensin.name> | 2025-12-29 18:15:39 +0100 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2025-12-29 18:15:39 +0100 |
| commit | 98b998aae8005a4cc0b29da825493139f4d0079a (patch) | |
| tree | ee2912754759c0aaafb5425f6b523296459cc384 /.github | |
| parent | drop Cygwin, it's obsolete (diff) | |
| download | setup-clang-98b998aae8005a4cc0b29da825493139f4d0079a.tar.gz setup-clang-98b998aae8005a4cc0b29da825493139f4d0079a.zip | |
actions/check-cc: one less global variable
Diffstat (limited to '.github')
| -rw-r--r-- | .github/actions/check-cc/action.yml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/.github/actions/check-cc/action.yml b/.github/actions/check-cc/action.yml index aef6d9c..b30f735 100644 --- a/.github/actions/check-cc/action.yml +++ b/.github/actions/check-cc/action.yml @@ -8,8 +8,6 @@ runs: using: composite steps: - run: | - $version = '${{ inputs.version }}' - function Check-Exe { param( [Parameter(Mandatory=$true)] @@ -22,7 +20,8 @@ runs: $($output | Select-String -Pattern "clang version" -SimpleMatch -Quiet) -or $(throw "Unexpected `$Exe --version` output") - if ($script:version) { + $version = '${{ inputs.version }}' + if ($version) { $($output | Select-String -Pattern "$script:version." -SimpleMatch -Quiet) -or $(throw "Unexpected `$Exe --version` output") } } |
