fix: use PAT_TOKEN for releases to trigger Discord notifications

- release.yml: Use PAT_TOKEN instead of GITHUB_TOKEN for softprops/action-gh-release
  so the published event triggers downstream workflows (Discord notification)
- discord-release.yml: Add workflow_dispatch trigger for manual re-runs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
AndyMik90
2026-02-20 12:47:00 +01:00
parent eb834ca32b
commit b32b97da51
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -3,6 +3,7 @@ name: Discord Release Notification
on:
release:
types: [published]
workflow_dispatch:
jobs:
discord-notification:
+1 -1
View File
@@ -620,7 +620,7 @@ jobs:
draft: false
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'alpha') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }}
# Update README with new version after successful release
update-readme: