ci: replace curl with gh (preinstalled)
This commit is contained in:
parent
42854cb685
commit
a7ff456c43
1 changed files with 5 additions and 4 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
|
@ -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"}'
|
||||
gh api \
|
||||
--method POST \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
/repos/vvirtues/bucket/dispatches \
|
||||
-f "event_type=discordo-ci-completed"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue