Skip to content

Commit 77b9170

Browse files
committed
Drop cross-repo dispatch; the package repo and the site poll releases
Releasing used to tell tui-tools.github.io and tui-tools/pkgs to rebuild straight away. Doing that needs a token with write access to those two repositories, stored as a secret on this public one, and the same secret on every other tool: a lot of keys to the website and to the package repository everybody's machines trust, spent on saving an hour of staleness. Both consumers now poll instead. The site rebuilds hourly, pkgs every twelve hours and only when a release fingerprint has actually changed, and either can be run by hand. Nothing here holds a secret for another repository any more.
1 parent a9872f6 commit 77b9170

1 file changed

Lines changed: 0 additions & 33 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,6 @@ jobs:
153153
runs-on: ubuntu-latest
154154
permissions:
155155
contents: write
156-
env:
157-
SITE_DISPATCH_TOKEN: ${{ secrets.SITE_DISPATCH_TOKEN }}
158-
# The package repository builder. PKGS_DISPATCH_TOKEN is the one to
159-
# set; SITE_DISPATCH_TOKEN is accepted as a fallback so a single
160-
# organization token can drive both rebuilds.
161-
PKGS_DISPATCH_TOKEN: ${{ secrets.PKGS_DISPATCH_TOKEN || secrets.SITE_DISPATCH_TOKEN }}
162156
steps:
163157
- uses: actions/checkout@v7
164158
with:
@@ -177,30 +171,3 @@ jobs:
177171
args: release --clean
178172
env:
179173
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
180-
181-
# Tell the family website that a release shipped, so it rebuilds now
182-
# instead of waiting for its hourly run. Inert until the repository
183-
# secret SITE_DISPATCH_TOKEN exists: a fine-grained PAT with
184-
# "Contents: read and write" on tui-tools/tui-tools.github.io.
185-
- name: notify the website
186-
if: env.SITE_DISPATCH_TOKEN != ''
187-
env:
188-
GH_TOKEN: ${{ env.SITE_DISPATCH_TOKEN }}
189-
run: |
190-
gh api repos/tui-tools/tui-tools.github.io/dispatches \
191-
-f event_type=tool-released \
192-
-f 'client_payload[tool]=tui-firewall'
193-
194-
# Tell the package repository builder that new .deb/.rpm/pacman files
195-
# exist, so pkgs.tui.tools picks them up now rather than on its weekly
196-
# run. Inert until PKGS_DISPATCH_TOKEN exists: a fine-grained PAT with
197-
# "Contents: read and write" on tui-tools/pkgs.
198-
- name: notify the package repository
199-
if: env.PKGS_DISPATCH_TOKEN != ''
200-
env:
201-
GH_TOKEN: ${{ env.PKGS_DISPATCH_TOKEN }}
202-
run: |
203-
gh api repos/tui-tools/pkgs/dispatches \
204-
-f event_type=tool-released \
205-
-f 'client_payload[tool]=tui-firewall' \
206-
-f "client_payload[version]=${GITHUB_REF_NAME#v}"

0 commit comments

Comments
 (0)