Skip to content

Commit

Permalink
Add a workflow to trigger 'deploy-pages' in imcf.github.io
Browse files Browse the repository at this point in the history
  • Loading branch information
ehrenfeu committed Feb 12, 2025
1 parent 3203cf1 commit 9e9c934
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/dispatch-deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -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"}'

0 comments on commit 9e9c934

Please sign in to comment.