Skip to content

Trigger GitHub Pages Update #136

Trigger GitHub Pages Update

Trigger GitHub Pages Update #136

name: Trigger GitHub Pages Update
run-name: Trigger GitHub Pages Update
on:
push:
paths:
- "*.md"
- "*.py"
workflow_dispatch:
workflow_call:
concurrency:
group: "gh-pages-update"
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"}'