-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: repository-dispatch-to-dependent-repos.yml (#45)
- Loading branch information
1 parent
d0c176d
commit f06ad28
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
.github/workflows/repository-dispatch-to-dependent-repos.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Send dispatch to dependent repos | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["main"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
# Build job | ||
dispatch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Dispatch to bitcoin-dev-project | ||
run: | | ||
curl -X POST \ | ||
-H "Authorization: token ${{ secrets.DISPATCH_UPDATE_BDP }}" \ | ||
-H "Accept: application/vnd.github+json" \ | ||
https://api.github.com/repos/bitcoin-dev-project/bitcoin-dev-project/dispatches \ | ||
-d '{"event_type": "update_submodules"}' |