Skip to content

Commit 66866c5

Browse files
committed
fix: use pwsh and \$true for release cleanup step in Windows build
The || operator and 'true' are bash idioms that don't work in Windows PowerShell 5.1 (shell: powershell). Switch to pwsh (PowerShell 7) which supports the || pipeline chain operator, and replace bare 'true' with '$true' (PowerShell boolean literal). https://claude.ai/code/session_015XDgrfp3HkuA7jyLE8gP5w
1 parent 2da851d commit 66866c5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build_windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ jobs:
3838

3939
- name: Delete existing latest release if exists
4040
run: |
41-
gh release delete latest --yes 2>$null || true
42-
git push origin :refs/tags/latest 2>$null || true
43-
shell: powershell
41+
gh release delete latest --yes 2>$null || $true
42+
git push origin :refs/tags/latest 2>$null || $true
43+
shell: pwsh
4444
env:
4545
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4646

0 commit comments

Comments
 (0)