Skip to content

Commit a1f944b

Browse files
committed
webhook workflow
1 parent 31e194d commit a1f944b

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/webhook.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Webhook Event example"
2+
3+
on:
4+
repository_dispatch:
5+
types:
6+
- webhook
7+
8+
jobs:
9+
respond-to-dispatch:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v2
14+
- name: Run a script
15+
run: echo "Event of type: $GITHUB_EVENT_NAME"

github-actions/Readme.me

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Manual Trigger
22

33
```sh
4-
gh workflow run greet.yml -f name=mona -f greeting=hello -F data=@myfile.txt
4+
gh workflow run manual.yml -f name=mona -f greeting=hello -F data=@mydata
55
echo '{"name":"mona", "greeting":"hello"}' | gh workflow run greet.yml --json
66
```
77

github-actions/templates/webhook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
respond-to-dispatch:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name Checkout repo
12+
- name: Checkout repo
1313
uses: actions/checkout@v2
1414
- name: Run a script
1515
run: echo "Event of type: $GITHUB_EVENT_NAME"

0 commit comments

Comments
 (0)