Skip to content

Ping Demo Repo on Update #3

Ping Demo Repo on Update

Ping Demo Repo on Update #3

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