Skip to content

Trigger GitHub Pages Update #92

Trigger GitHub Pages Update

Trigger GitHub Pages Update #92

name: Trigger GitHub Pages Update
run-name: Trigger GitHub Pages Update
on:
push:
paths:
- "*.md"
- "*.py"
workflow_dispatch:
workflow_run:
workflows: ["Generate Instrument Table of Contents"]
types:
- completed
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
trigger-gh-pages-update:
runs-on: ubuntu-latest
steps:
- name: Call GitHub Actions API
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.PAGES_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/CarlGao4/ms-sounds-pages/actions/workflows/jekyll-gh-pages.yml/dispatches \
-d '{"ref":"main"}'