forked from Dicklesworthstone/beads_viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.49 KB
/
notify-acfs.yml
File metadata and controls
46 lines (43 loc) · 1.49 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
# .github/workflows/notify-acfs.yml
#
# Notifies ACFS when installer scripts change, triggering checksum updates.
# Use this template for repos with install.sh at the repository root.
#
# Setup:
# 1. Create a PAT with 'contents:read' on agentic_coding_flywheel_setup
# 2. Add it as a secret named ACFS_REPO_DISPATCH_TOKEN in this repo
# 3. Copy this file to .github/workflows/notify-acfs.yml
#
# Related: agentic_coding_flywheel_setup-b04c
#
name: Notify ACFS of Installer Changes
on:
push:
branches: [main, master]
paths:
- 'install.sh'
workflow_dispatch: # Manual trigger for testing
jobs:
notify-acfs:
runs-on: ubuntu-latest
steps:
- name: Trigger ACFS checksum update
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.ACFS_REPO_DISPATCH_TOKEN }}
repository: Dicklesworthstone/agentic_coding_flywheel_setup
event-type: upstream-changed
client-payload: |
{
"tool": "${{ github.event.repository.name }}",
"ref": "${{ github.ref }}",
"sha": "${{ github.sha }}",
"actor": "${{ github.actor }}",
"timestamp": "${{ github.event.head_commit.timestamp }}"
}
- name: Log dispatch
run: |
echo "✅ Dispatched upstream-changed event to ACFS"
echo " Tool: ${{ github.event.repository.name }}"
echo " SHA: ${{ github.sha }}"
echo " Triggered by: ${{ github.actor }}"