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
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -28,12 +28,12 @@ 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 \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
/repos/vvirtues/bucket/dispatches \
|
||||
-f "event_type=discordo-ci-completed"
|
||||
-f "event_type=discordo-ci-completed"
|
||||
Loading…
Add table
Reference in a new issue