From a548aad96c9cd073ee64137f48ec6b550c3a1f3e Mon Sep 17 00:00:00 2001 From: "Krystie (TRI packaging)" Date: Sun, 21 Jun 2026 02:08:38 -0700 Subject: [PATCH] ci: fix distribute.yml chocolatey + winget step bugs - Chocolatey 'Check' step: add shell: bash so the [ -z ] syntax parses - WinGet fork: remove --fork flag (renamed), use --remote=false instead which omits the clone in the same step --- .github/workflows/distribute.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/distribute.yml b/.github/workflows/distribute.yml index 5087d4c..7c1ce9a 100644 --- a/.github/workflows/distribute.yml +++ b/.github/workflows/distribute.yml @@ -346,6 +346,7 @@ jobs: - uses: actions/checkout@v4 - name: Check CHOCO_API_KEY + CHOCO_SKIP_WACATAC + shell: bash run: | if [ -z "$CHOCO_API_KEY" ]; then echo "::warning::CHOCO_API_KEY not set — skipping Chocolatey push." @@ -506,9 +507,8 @@ jobs: echo "Forking microsoft/winget-pkgs..." GH_REPO="SamiAhmed7777/winget-pkgs" if ! gh repo view "$GH_REPO" >/dev/null 2>&1; then - gh repo fork microsoft/winget-pkgs --fork --remote=false + gh repo fork microsoft/winget-pkgs --remote=false || true fi - gh repo sync "$GH_REPO" --source microsoft/winget-pkgs --branch master --force 2>&1 | tail -3 || true rm -rf winget-pkgs git clone --depth 1 "https://x-access-token:${WINGET_TOKEN}@github.com/${GH_REPO}.git" winget-pkgs cd winget-pkgs