Explorar el Código

ci: add dispatch event (#477)

Co-authored-by: Ayyan <ayn2op@gmail.com>
vvxrtues hace 1 año
padre
commit
42854cb685
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      .github/workflows/ci.yml

+ 8 - 0
.github/workflows/ci.yml

@@ -26,3 +26,11 @@ jobs:
           path: |
             discordo
             discordo.exe
+
+      - 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"}'