소스 검색

ci: replace curl with gh (preinstalled)

ayn2op 1 년 전
부모
커밋
a7ff456c43
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      .github/workflows/ci.yml

+ 5 - 4
.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"}'
+          gh api \
+            --method POST \
+            -H "Accept: application/vnd.github+json" \
+            /repos/vvirtues/bucket/dispatches \
+            -f "event_type=discordo-ci-completed"