Skip to content

Commit 23d020a

Browse files
authored
Create dispatch.yml
1 parent b29efda commit 23d020a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/dispatch.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Dispatch
2+
3+
on:
4+
push:
5+
branches:
6+
- development
7+
workflow_dispatch:
8+
9+
jobs:
10+
11+
dispatch:
12+
13+
name: dispatch to validate
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
18+
- run: ${{ tojson(github.event) }}
19+
shell: cat {0}
20+
21+
- run: |
22+
curl -H "Authorization: token ${{ secrets.VALIDATE_REPO_GH_TOKEN }} " \
23+
-H 'Accept: application/vnd.github.everest-preview+json' "${{ vars.VALIDATE_REPO_DISPATCH_URL }}" \
24+
-d '{ "event_type": "submodule_dispatch", "client_payload": { "owner": "${{ github.event.repository.owner.login }}", "repo": "${{ github.event.repository.name }}", "branch": "${{ github.ref_name }}" } }'

0 commit comments

Comments
 (0)