aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/actions/common-variables
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-19 04:48:26 +0300
committerEgor Tensin <egor@tensin.name>2026-10-19 05:23:15 +0300
commitb1bfbd3501b6521d3204b5d060f88a8f6153f945 (patch)
treebf2d3869023e1dd20bf395d5dca52f4b6b2b4f39 /.github/actions/common-variables
parentworkflows/lint: add a zizmor job (diff)
downloadcmake-common-b1bfbd3501b6521d3204b5d060f88a8f6153f945.tar.gz
cmake-common-b1bfbd3501b6521d3204b5d060f88a8f6153f945.zip
{actions,workflows}: fail on unset environment variables
The $env:NAME syntax fails to produce an error if $NAME is not defined, regardless of Set-StrictMode/Set-PSDebug. Also, while I'm at it, clean up the actions/workflows code a little bit.
Diffstat (limited to '.github/actions/common-variables')
-rw-r--r--.github/actions/common-variables/action.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/actions/common-variables/action.yml b/.github/actions/common-variables/action.yml
index af86aff..249feae 100644
--- a/.github/actions/common-variables/action.yml
+++ b/.github/actions/common-variables/action.yml
@@ -10,7 +10,7 @@ runs:
- env:
ARG_TOOLSET: ${{ inputs.toolset }}
run: |
- $toolset = $env:ARG_TOOLSET
+ $toolset = (Get-ChildItem env:ARG_TOOLSET).Value
$host_linux = '${{ runner.os }}' -eq 'Linux'
$host_windows = '${{ runner.os }}' -eq 'Windows'