-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 965 Bytes
/
Copy pathtrigger-sites.yml
File metadata and controls
30 lines (26 loc) · 965 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
30
name: Trigger Site Rebuilds
on:
push:
branches:
- main
paths:
- '**/*.md'
workflow_dispatch:
concurrency:
group: trigger-site-rebuilds-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
trigger-rebuilds:
runs-on: ubuntu-latest
steps:
- name: Trigger wikip.co rebuild
run: |
curl --fail -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.TRIGGER_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/wikip-co/wikip.co/dispatches \
-d '{"event_type":"content-updated","client_payload":{"content_repository":"'"${{ github.repository }}"'","content_ref":"'"${{ github.ref_name }}"'","content_sha":"'"${{ github.sha }}"'","source_run_url":"'"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"'"}}'