From 66866c574ec4ed365e4e522c181765975c0a331f Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Feb 2026 22:27:37 +0000 Subject: [PATCH] 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 --- .github/workflows/build_windows.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_windows.yml b/.github/workflows/build_windows.yml index 41b497b..2bf0b12 100644 --- a/.github/workflows/build_windows.yml +++ b/.github/workflows/build_windows.yml @@ -38,9 +38,9 @@ jobs: - name: Delete existing latest release if exists run: | - gh release delete latest --yes 2>$null || true - git push origin :refs/tags/latest 2>$null || true - shell: powershell + gh release delete latest --yes 2>$null || $true + git push origin :refs/tags/latest 2>$null || $true + shell: pwsh env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}