From 0361434c4cff468f6c13b43865337484ae8f23f7 Mon Sep 17 00:00:00 2001 From: vvxrtues <81705406+vvirtues@users.noreply.github.com> Date: Sun, 5 Jan 2025 00:47:02 -0500 Subject: [PATCH] ci: use PAT & trigger only if os is windows (#479) Co-authored-by: Ayyan --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ba724f..b491e8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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" \ No newline at end of file