ci: use PAT & trigger only if os is windows (#479)
Co-authored-by: Ayyan <ayn2op@gmail.com>
This commit is contained in:
parent
ba885d461c
commit
0361434c4c
1 changed files with 3 additions and 3 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -28,9 +28,9 @@ jobs:
|
||||||
discordo.exe
|
discordo.exe
|
||||||
|
|
||||||
- name: Send repository dispatch
|
- 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:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.PAT }}
|
||||||
run: |
|
run: |
|
||||||
gh api \
|
gh api \
|
||||||
--method POST \
|
--method POST \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue