File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Notify wheels.dev site
2+
3+ on :
4+ push :
5+ branches : [main]
6+ paths :
7+ - ' packages/**'
8+ - ' schema/**'
9+
10+ jobs :
11+ notify :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Fire repository_dispatch at wheels-dev/wheels
15+ env :
16+ GH_TOKEN : ${{ secrets.NOTIFY_WHEELS_TOKEN }}
17+ run : |
18+ gh api repos/wheels-dev/wheels/dispatches \
19+ --method POST \
20+ --field event_type=registry-updated \
21+ --field "client_payload[source_commit]=${GITHUB_SHA}"
Original file line number Diff line number Diff line change @@ -52,3 +52,17 @@ Maintainers look at:
5252## Getting help
5353
5454Open an issue on this repo or ping ` #wheels-packages ` on Discord.
55+
56+ ## Site rebuild trigger
57+
58+ Merging a PR that changes ` packages/** ` or ` schema/** ` on ` main ` automatically
59+ rebuilds [ packages.wheels.dev] ( https://packages.wheels.dev ) via a
60+ ` repository_dispatch ` event fired at ` wheels-dev/wheels ` . The trigger is
61+ implemented in [ ` .github/workflows/notify-site.yml ` ] ( .github/workflows/notify-site.yml )
62+ and requires a repository secret named ` NOTIFY_WHEELS_TOKEN ` — a fine-grained
63+ PAT scoped to ` wheels-dev/wheels ` with ` contents: write ` .
64+
65+ If a registry merge does not rebuild the site within a few minutes:
66+ 1 . Check the ` Notify wheels.dev site ` workflow run in this repo's Actions tab.
67+ 2 . If it succeeded, check the ` Deploy static sites ` workflow in ` wheels-dev/wheels ` .
68+ 3 . If the notify workflow failed with a 401/403, the PAT has likely expired — rotate and update the secret.
You can’t perform that action at this time.
0 commit comments