Skip to content

Commit 01f383d

Browse files
committed
webhook
1 parent a1f944b commit 01f383d

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/webhook.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@ jobs:
99
respond-to-dispatch:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Checkout repo
13-
uses: actions/checkout@v2
1412
- name: Run a script
1513
run: echo "Event of type: $GITHUB_EVENT_NAME"

github-actions/Readme.me

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,12 @@ curl -X POST \
1313
-H "Authorization: token {PAT} \
1414
-d '{"event_type": "webhook", "client_payload": {"key": "value"} }' \
1515
https://api.github.com/repos/{owner}/{repo}/dispatches
16+
```
17+
18+
```sh
19+
curl -X POST \
20+
-H "Accept: application/vnd.github+json" \
21+
-H "Authorization: token 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" \
22+
-d '{"event_type": "webhook", "client_payload": {"key": "value"} }' \
23+
https://api.github.com/repos/Sheane-mario/Github-Examples/dispatches
1624
```

0 commit comments

Comments
 (0)