Trigger GitHub Pages Update #112
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}' |