-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 924 Bytes
/
instant-sync.yml
File metadata and controls
33 lines (29 loc) · 924 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
31
32
33
# SPDX-License-Identifier: PMPL-1.0-or-later
# Instant Forge Sync - Triggers propagation to all forges on push/release
name: Instant Sync
on:
push:
branches: [main, master]
release:
types: [published]
permissions:
contents: read
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Trigger Propagation
uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v3
with:
token: ${{ secrets.FARM_DISPATCH_TOKEN }}
repository: hyperpolymath/.git-private-farm
event-type: propagate
client-payload: |-
{
"repo": "${{ github.event.repository.name }}",
"ref": "${{ github.ref }}",
"sha": "${{ github.sha }}",
"forges": ""
}
- name: Confirm
run: echo "::notice::Propagation triggered for ${{ github.event.repository.name }}"