Skip to content

Commit 6920382

Browse files
Fix command
Explicitly use `pwsh` to fix environment variable syntax on Windows 2025 runners.
1 parent 0f9f8aa commit 6920382

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ jobs:
6161
run: ./build.ps1
6262

6363
- name: Install Spectral
64-
run: npm install -g "@stoplight/spectral-cli@${SPECTRAL_CLI_VERSION}"
64+
shell: pwsh
65+
run: npm install -g "@stoplight/spectral-cli@${env:SPECTRAL_CLI_VERSION}"
6566

6667
- name: Run Spectral
6768
run: spectral lint "./artifacts/openapi/*" --fail-severity warn --format github-actions

0 commit comments

Comments
 (0)