From a7ff456c4306ba3cd9564fde928be8e48af13141 Mon Sep 17 00:00:00 2001 From: ayn2op Date: Sat, 4 Jan 2025 23:23:48 -0500 Subject: [PATCH] ci: replace curl with gh (preinstalled) --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1fc3151..53175a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,8 @@ jobs: - name: Send repository dispatch if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} run: | - curl -X POST -H "Accept: application/vnd.github.v3+json" \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - https://api.github.com/repos/vvirtues/bucket/dispatches \ - -d '{"event_type": "discordo-ci-completed"}' \ No newline at end of file + gh api \ + --method POST \ + -H "Accept: application/vnd.github+json" \ + /repos/vvirtues/bucket/dispatches \ + -f "event_type=discordo-ci-completed"