aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/actions/check-cc/action.yml5
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")
}
}