From 9e9c934cd7212943ab9f0b807cd5c70643ffd5f1 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter Date: Wed, 12 Feb 2025 12:56:28 +0100 Subject: [PATCH] Add a workflow to trigger 'deploy-pages' in imcf.github.io --- .github/workflows/dispatch-deploy-pages.yml | 31 +++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/dispatch-deploy-pages.yml diff --git a/.github/workflows/dispatch-deploy-pages.yml b/.github/workflows/dispatch-deploy-pages.yml new file mode 100644 index 0000000..af221ad --- /dev/null +++ b/.github/workflows/dispatch-deploy-pages.yml @@ -0,0 +1,31 @@ +name: 🚀 Dispatch workflows in other repositories + +on: + workflow_dispatch: + + push: + branches: + - master + tags: + - "python-imcflibs-[0-9]+.*" + +jobs: + + trigger-event: + + strategy: + matrix: + repo: ['imcf/imcf.github.io'] + + runs-on: ubuntu-latest + + steps: + - name: 🏹 Fire event on `${{ matrix.repo }}` + run: | + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ secrets.DISPATCH_DEPLOY_PAGES }}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/${{ matrix.repo }}/dispatches \ + -d '{"event_type":"dispatch-event"}'