Skip to content

Commit

Permalink
Create send_dispatch.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiTheModder authored Dec 19, 2024
1 parent fc20ed5 commit d4ab3a3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/send_dispatch.yml
Original file line number Diff line number Diff line change
@@ -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": {}
}'

0 comments on commit d4ab3a3

Please sign in to comment.