File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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
55echo '{"name":"mona", "greeting":"hello"}' | gh workflow run greet.yml --json
66```
77
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments