Skip to content

Commit dc7f679

Browse files
authored
Create ping-demo-site.yml
1 parent b90cc45 commit dc7f679

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Ping Demo Repo on Update
2+
3+
on:
4+
workflow_run:
5+
workflows: [ "Fetch missing Silk icons" ] # Waits for your icon fetcher
6+
types:
7+
- completed
8+
push:
9+
branches: [ main ]
10+
paths-ignore: # Skip files handled by icon fetcher to avoid double pings
11+
- '404.html'
12+
- '_layouts/directory.html'
13+
- '_includes/icon_mapper.html'
14+
- '.github/workflows/fetch-icons.yml'
15+
workflow_dispatch:
16+
17+
jobs:
18+
ping-demo:
19+
# Only fire if the trigger was a standard code push, a manual trigger,
20+
# or a successful icon-fetch workflow completion
21+
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Send Repository Dispatch Event
25+
uses: peter-evans/repository-dispatch@v4
26+
with:
27+
token: ${{ secrets.DEMO_SYNC_TOKEN }}
28+
repository: USLTD/jekyll-index-of-demo
29+
event-type: template_updated

0 commit comments

Comments
 (0)