Skip to content

Commit 5144fdb

Browse files
committed
release: dispatch scoop-wheels, retire chocolatey
The downstream package-manager dispatch step has fired wheels-released events to wheels-dev/homebrew-wheels and wheels-dev/chocolatey-wheels. Swap chocolatey out for scoop-wheels — the v1.x chocolatey-wheels package is CommandBox-based and can't drive v4, so the Windows install path moved permanently to Scoop in 4.0. scoop-wheels#4 adds the autoupdate workflow on the consumer side that listens for this dispatch event. Touches the dispatch loop, the secret docstring, the in-step warning message, and the three sibling comments (apt/yum dispatch + bump-develop) that referenced the homebrew/chocolatey step as their channel-derivation template. No functional change for stable v4.0.0 (it already shipped). Takes effect on the next snapshot or 4.0.1 release. Refs #2758 Refs wheels-dev/scoop-wheels#4 Signed-off-by: Peter Amiri <peter@alurium.com>
1 parent a81345a commit 5144fdb

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ on:
1515
FORGEBOX_PASS:
1616
required: true
1717
# Optional — when present, the build job's "Dispatch downstream package
18-
# managers" step fires repository_dispatch on homebrew/chocolatey-wheels
19-
# so their auto-update workflows pick up the new release in ~5min instead
20-
# of waiting for the daily cron. When absent, the step warns and exits 0.
18+
# managers" step fires repository_dispatch on homebrew-wheels and
19+
# scoop-wheels so their auto-update workflows pick up the new release
20+
# in ~5min instead of waiting for the daily cron. When absent, the step
21+
# warns and exits 0. The chocolatey path was retired in favor of Scoop
22+
# for the v4.x Windows install — see scoop-wheels#4.
2123
DOWNSTREAM_DISPATCH_TOKEN:
2224
required: false
2325
# Optional — when present, the build job's "Dispatch Linux repo buckets"
@@ -501,13 +503,17 @@ jobs:
501503
# Dispatch downstream package managers
502504
#
503505
# Fires repository_dispatch on wheels-dev/homebrew-wheels and
504-
# wheels-dev/chocolatey-wheels so their auto-update workflows pick
505-
# up the new release within minutes instead of waiting up to 24h
506-
# for their daily cron. Both repos have:
506+
# wheels-dev/scoop-wheels so their auto-update workflows pick up
507+
# the new release within minutes instead of waiting up to 24h for
508+
# their daily cron. Both repos have:
507509
# on:
508510
# repository_dispatch:
509511
# types: [wheels-released]
510512
#
513+
# Chocolatey was dropped — the v1.x chocolatey-wheels package is
514+
# CommandBox-based and can't drive v4. Windows installs go through
515+
# Scoop now. See scoop-wheels#4 for the bucket's autoupdate workflow.
516+
#
511517
# Requires DOWNSTREAM_DISPATCH_TOKEN — a fine-grained PAT (or app
512518
# token) with `metadata: read` + `actions: write` on the two
513519
# downstream repos. If the secret is unset, this step warns and
@@ -522,7 +528,7 @@ jobs:
522528
set -euo pipefail
523529
524530
if [ -z "${GH_DISPATCH_TOKEN:-}" ]; then
525-
echo "::warning::DOWNSTREAM_DISPATCH_TOKEN is not set on the repository — homebrew/chocolatey auto-update will fall back to the daily cron tick."
531+
echo "::warning::DOWNSTREAM_DISPATCH_TOKEN is not set on the repository — homebrew-wheels and scoop-wheels auto-update will fall back to the daily cron tick."
526532
exit 0
527533
fi
528534
@@ -546,7 +552,7 @@ jobs:
546552
# Static event type, fixed repo list — no untrusted input flows
547553
# into the curl arguments. WHEELS_RELEASE_VERSION is generated
548554
# earlier in the same workflow from wheels.json + run number.
549-
for repo in homebrew-wheels chocolatey-wheels; do
555+
for repo in homebrew-wheels scoop-wheels; do
550556
echo "Dispatching wheels-released to wheels-dev/${repo}..."
551557
http_status=$(curl -sS -o /tmp/dispatch-resp.txt -w "%{http_code}" \
552558
-X POST \
@@ -564,7 +570,7 @@ jobs:
564570
fi
565571
done
566572
567-
echo "Downstream package manager workflows dispatched (homebrew + chocolatey)."
573+
echo "Downstream package manager workflows dispatched (homebrew + scoop)."
568574
569575
#############################################
570576
# Dispatch Linux repo buckets (apt.wheels.dev / yum.wheels.dev)
@@ -596,7 +602,7 @@ jobs:
596602
exit 0
597603
fi
598604
599-
# Same channel derivation as the homebrew/chocolatey dispatch.
605+
# Same channel derivation as the homebrew/scoop dispatch.
600606
# apt-wheels-dev / yum-wheels-dev route on `channel` in the payload
601607
# to slot the .deb/.rpm into the right pool (stable vs bleeding-edge).
602608
# RC releases aren't currently published to apt/yum, so we skip them.
@@ -645,7 +651,7 @@ jobs:
645651
exit 0
646652
fi
647653
648-
# Reuse the same channel-derivation rule as the homebrew/chocolatey
654+
# Reuse the same channel-derivation rule as the homebrew/scoop
649655
# step so this stays in sync. Only stable GA releases bump develop.
650656
if echo "${WHEELS_RELEASE_VERSION}" | grep -qiE '\-snapshot[\.\+]'; then
651657
CHANNEL="bleeding-edge"
@@ -657,7 +663,7 @@ jobs:
657663
658664
# Fire bump-develop at this repo to open the develop-bump PR.
659665
# Only stable GA releases bump develop; snapshots and RCs don't.
660-
# Same workaround as the homebrew/chocolatey dispatches above:
666+
# Same workaround as the homebrew/scoop dispatches above:
661667
# the release-publish step runs under the default workflow token,
662668
# which cannot trigger downstream workflows. We dispatch from
663669
# this step (which runs under DOWNSTREAM_DISPATCH_TOKEN, a PAT)

0 commit comments

Comments
 (0)