Skip to content

Commit 6bd7e99

Browse files
Create notify-parent.yml
notify-parent.yml for github actions
1 parent ee16644 commit 6bd7e99

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Notify parent repo
2+
3+
on:
4+
push:
5+
branches:
6+
- main # or whichever branch you want
7+
8+
jobs:
9+
notify:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Send dispatch event
13+
run: |
14+
curl -X POST \
15+
-H "Accept: application/vnd.github+json" \
16+
-H "Authorization: Bearer ${{ secrets.PARENT_REPO_TOKEN }}" \
17+
https://api.github.com/repos/cloudera/cloudera-partners/dispatches \
18+
-d '{"event_type":"update-submodule"}'

0 commit comments

Comments
 (0)