-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (27 loc) · 980 Bytes
/
Copy pathping-demo-site.yml
File metadata and controls
29 lines (27 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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