Skip to content

Commit f06ad28

Browse files
feat: repository-dispatch-to-dependent-repos.yml (#45)
1 parent d0c176d commit f06ad28

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Send dispatch to dependent repos
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["main"]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
jobs:
12+
# Build job
13+
dispatch:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Dispatch to bitcoin-dev-project
17+
run: |
18+
curl -X POST \
19+
-H "Authorization: token ${{ secrets.DISPATCH_UPDATE_BDP }}" \
20+
-H "Accept: application/vnd.github+json" \
21+
https://api.github.com/repos/bitcoin-dev-project/bitcoin-dev-project/dispatches \
22+
-d '{"event_type": "update_submodules"}'

0 commit comments

Comments
 (0)