From f06ad28de3d8b83499632c55bcb2e630650fd37f Mon Sep 17 00:00:00 2001 From: Emmanuel Itakpe <62019510+Emmanuel-Develops@users.noreply.github.com> Date: Tue, 17 Dec 2024 22:15:19 +0100 Subject: [PATCH] feat: repository-dispatch-to-dependent-repos.yml (#45) --- ...repository-dispatch-to-dependent-repos.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/repository-dispatch-to-dependent-repos.yml diff --git a/.github/workflows/repository-dispatch-to-dependent-repos.yml b/.github/workflows/repository-dispatch-to-dependent-repos.yml new file mode 100644 index 0000000..db46f6b --- /dev/null +++ b/.github/workflows/repository-dispatch-to-dependent-repos.yml @@ -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"}'