File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments