Skip to content

Commit

Permalink
feat: repository-dispatch-to-dependent-repos.yml (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel-Develops authored Dec 17, 2024
1 parent d0c176d commit f06ad28
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/repository-dispatch-to-dependent-repos.yml
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"}'

0 comments on commit f06ad28

Please sign in to comment.