Skip to content

Commit 36eca3c

Browse files
authored
webhook_sample
1 parent 8fe068b commit 36eca3c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/webhook_repository_dispatch.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ jobs:
1313
steps:
1414
- name: to print the event
1515
run: echo "event is ${{ github.event_name }}"
16+
17+
18+
# to run - curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/repos/2vikram22/Github-Examples/dispatches -d '{
19+
# "event_type": "webhook","client_payload": {"ref": "main"}
20+
# }'
21+
22+
# note , we have not mentioned any filename in the api as it is event.
23+
# in event_type , web2 can also be written
1624

1725

1826

0 commit comments

Comments
 (0)