ci: use PAT & trigger only if os is windows (#479)

Co-authored-by: Ayyan <ayn2op@gmail.com>
This commit is contained in:
vvxrtues 2025-01-05 00:47:02 -05:00 • committed by GitHub
parent ba885d461c
commit 0361434c4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,9 +28,9 @@ jobs:
discordo.exe
- name: Send repository dispatch
if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
if: ${{ runner.os == 'Windows' && github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.PAT }}
run: |
gh api \
--method POST \