diff --git a/.github/workflows/post_release.yml b/.github/workflows/post_release.yml index 2aa0c511b..3fb957ecc 100644 --- a/.github/workflows/post_release.yml +++ b/.github/workflows/post_release.yml @@ -25,7 +25,14 @@ jobs: name: Publish to WinGet runs-on: ubuntu-latest steps: - - uses: vedantmgoyal2009/winget-releaser@v2 + - id: publish-winget + uses: vedantmgoyal2009/winget-releaser@v2 + continue-on-error: true with: identifier: dail8859.NotepadNext token: ${{ secrets.WINGET_TOKEN }} + + - name: Report WinGet publish failure + if: steps.publish-winget.outcome == 'failure' + run: | + echo "::warning::WinGet publish failed. The WINGET_TOKEN is likely invalid or missing required permissions. Configure a classic PAT with public_repo scope."