Skip to content

Commit c3bf2d6

Browse files
committed
ci: add org metadata sync trigger workflow
Co-authored-by: Koru Agent <agent@coru.dev>
1 parent 219fd02 commit c3bf2d6

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copy this file to member repos as .github/workflows/trigger-org-sync.yml
2+
# Repository dispatch target is filled by bootstrap_triggers.py
3+
4+
name: Trigger org metadata sync
5+
6+
on:
7+
push:
8+
branches: [main, master]
9+
paths-ignore:
10+
- "index.html"
11+
- ".nojekyll"
12+
- "profile/**"
13+
- ".github/workflows/trigger-org-sync.yml"
14+
workflow_dispatch:
15+
16+
jobs:
17+
dispatch:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Notify org metadata sync
21+
uses: peter-evans/repository-dispatch@v3
22+
with:
23+
token: ${{ secrets.ORG_SYNC_PAT }}
24+
repository: semcod/.github
25+
event-type: org-repo-changed
26+
client-payload: >-
27+
{"repository":"${{ github.repository }}","ref":"${{ github.ref }}","sha":"${{ github.sha }}"}

0 commit comments

Comments
 (0)