Ping Demo Repo on Update #3
This file contains hidden or 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: Ping Demo Repo on Update | |
| on: | |
| workflow_run: | |
| workflows: [ "Fetch missing Silk icons" ] # Waits for your icon fetcher | |
| types: | |
| - completed | |
| push: | |
| branches: [ main ] | |
| paths-ignore: # Skip files handled by icon fetcher to avoid double pings | |
| - '404.html' | |
| - '_layouts/directory.html' | |
| - '_includes/icon_mapper.html' | |
| - '.github/workflows/fetch-icons.yml' | |
| workflow_dispatch: | |
| jobs: | |
| ping-demo: | |
| # Only fire if the trigger was a standard code push, a manual trigger, | |
| # or a successful icon-fetch workflow completion | |
| if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Send Repository Dispatch Event | |
| uses: peter-evans/repository-dispatch@v4 | |
| with: | |
| token: ${{ secrets.DEMO_SYNC_TOKEN }} | |
| repository: USLTD/jekyll-index-of-demo | |
| event-type: template_updated |