Skip to content

Commit c515391

Browse files
ci: add ACFS checksum update notification workflow
1 parent cddd96c commit c515391

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/notify-acfs.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# .github/workflows/notify-acfs.yml
2+
#
3+
# Notifies ACFS when installer scripts change, triggering checksum updates.
4+
# Use this template for repos with install.sh at the repository root.
5+
#
6+
# Setup:
7+
# 1. Create a PAT with 'contents:read' on agentic_coding_flywheel_setup
8+
# 2. Add it as a secret named ACFS_REPO_DISPATCH_TOKEN in this repo
9+
# 3. Copy this file to .github/workflows/notify-acfs.yml
10+
#
11+
# Related: agentic_coding_flywheel_setup-b04c
12+
#
13+
name: Notify ACFS of Installer Changes
14+
15+
on:
16+
push:
17+
branches: [main, master]
18+
paths:
19+
- 'install.sh'
20+
workflow_dispatch: # Manual trigger for testing
21+
22+
jobs:
23+
notify-acfs:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Trigger ACFS checksum update
27+
uses: peter-evans/repository-dispatch@v3
28+
with:
29+
token: ${{ secrets.ACFS_REPO_DISPATCH_TOKEN }}
30+
repository: Dicklesworthstone/agentic_coding_flywheel_setup
31+
event-type: upstream-changed
32+
client-payload: |
33+
{
34+
"tool": "${{ github.event.repository.name }}",
35+
"ref": "${{ github.ref }}",
36+
"sha": "${{ github.sha }}",
37+
"actor": "${{ github.actor }}",
38+
"timestamp": "${{ github.event.head_commit.timestamp }}"
39+
}
40+
41+
- name: Log dispatch
42+
run: |
43+
echo "✅ Dispatched upstream-changed event to ACFS"
44+
echo " Tool: ${{ github.event.repository.name }}"
45+
echo " SHA: ${{ github.sha }}"
46+
echo " Triggered by: ${{ github.actor }}"

0 commit comments

Comments
 (0)