Skip to content

Commit f1d2557

Browse files
committed
Notify repo.mossdef.org on release (event-driven sync)
Add a release-job step that fires repository_dispatch to repo.mossdef.org so a new release publishes immediately instead of waiting for the hourly poll. Non-fatal when SYNC_DISPATCH_TOKEN is absent.
1 parent 4677671 commit f1d2557

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/openwrt-release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,3 +301,13 @@ jobs:
301301
gh release delete-asset "$TAG" "$a" --yes
302302
}
303303
done
304+
- name: 🔔 Notify repo.mossdef.org
305+
# Event-driven sync: ping the repo so it publishes this release immediately
306+
# instead of waiting for its hourly poll. Non-fatal if the token is absent.
307+
if: needs.build.result == 'success'
308+
env:
309+
GH_TOKEN: ${{ secrets.SYNC_DISPATCH_TOKEN }}
310+
run: |
311+
gh api -X POST /repos/mossdef-org/repo.mossdef.org/dispatches \
312+
-f event_type=package-released \
313+
|| echo "dispatch failed — repo.mossdef.org still syncs on its hourly schedule"

0 commit comments

Comments
 (0)