From d4ab3a3f54f06c20d5ba6dec8ae072b2a104a5e2 Mon Sep 17 00:00:00 2001 From: Abhi <85984486+AbhiTheModder@users.noreply.github.com> Date: Thu, 19 Dec 2024 07:11:59 +0530 Subject: [PATCH] Create send_dispatch.yml --- .github/workflows/send_dispatch.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/send_dispatch.yml diff --git a/.github/workflows/send_dispatch.yml b/.github/workflows/send_dispatch.yml new file mode 100644 index 0000000..c337af1 --- /dev/null +++ b/.github/workflows/send_dispatch.yml @@ -0,0 +1,23 @@ +name: Trigger Grammar Update + +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + trigger-dispatch: + runs-on: ubuntu-latest + + steps: + - name: Send repository_dispatch event + run: | + curl -X POST \ + -H "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/AbhiTheModder/understand-smali/dispatches \ + -d '{ + "event_type": "grammar-updated", + "client_payload": {} + }'