diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-19 04:48:26 +0300 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-19 05:23:15 +0300 |
| commit | b1bfbd3501b6521d3204b5d060f88a8f6153f945 (patch) | |
| tree | bf2d3869023e1dd20bf395d5dca52f4b6b2b4f39 /.github/actions/software-environment/action.yml | |
| parent | workflows/lint: add a zizmor job (diff) | |
| download | cmake-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/software-environment/action.yml')
| -rw-r--r-- | .github/actions/software-environment/action.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/actions/software-environment/action.yml b/.github/actions/software-environment/action.yml index 25d3ce5..ed36c7a 100644 --- a/.github/actions/software-environment/action.yml +++ b/.github/actions/software-environment/action.yml @@ -4,7 +4,7 @@ runs: using: composite steps: - run: | - if ($env:CI_HOST_WINDOWS) { + if ((Get-ChildItem env:CI_HOST_WINDOWS).Value) { echo 'C:\Program Files\CMake\bin' >> $env:GITHUB_PATH } shell: pwsh |
