Skip to content

fix(ci): scoop bucket auto-update never actually ran - #21

Merged
casablanque-code merged 1 commit into
mainfrom
fix-scoop-autoupdate-trigger
Aug 2, 2026
Merged

fix(ci): scoop bucket auto-update never actually ran#21
casablanque-code merged 1 commit into
mainfrom
fix-scoop-autoupdate-trigger

Conversation

@casablanque-code

Copy link
Copy Markdown
Owner

.github/workflows/scoop-update.yml (on: release: types: [published]) had zero runs ever, including for v0.7.1 — GitHub does not trigger 'release' events for releases created by a workflow using the default GITHUB_TOKEN (here, softprops/action-gh-release with no explicit token: input), specifically to prevent workflow recursion. This is why 'scoop update zt' kept reporting 0.7.0 as latest after v0.7.1 shipped.

Folds the bucket bump into release.yml itself as a step right after the release upload, in the same job — it already has the sha256 on disk from the 'Generate checksums' step, so no second network round-trip or risk of racing the upload. Removes the now-dead scoop-update.yml.

Manually bumps bucket/zt.json to v0.7.1 (correct url + hash) since the automated path never fired for it.

.github/workflows/scoop-update.yml (on: release: types: [published])
had zero runs ever, including for v0.7.1 — GitHub does not trigger
'release' events for releases created by a workflow using the default
GITHUB_TOKEN (here, softprops/action-gh-release with no explicit
token: input), specifically to prevent workflow recursion. This is
why 'scoop update zt' kept reporting 0.7.0 as latest after v0.7.1
shipped.

Folds the bucket bump into release.yml itself as a step right after
the release upload, in the same job — it already has the sha256 on
disk from the 'Generate checksums' step, so no second network
round-trip or risk of racing the upload. Removes the now-dead
scoop-update.yml.

Manually bumps bucket/zt.json to v0.7.1 (correct url + hash) since the
automated path never fired for it.
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@casablanque-code
casablanque-code merged commit 729f95d into main Aug 2, 2026
4 checks passed
casablanque-code added a commit that referenced this pull request Aug 2, 2026
Requires patches #20 (newCFClient) and #21 (withFakeCFClient helper,
defined in init_test.go) already applied.

Drives runDown end to end against a fake server covering every
endpoint it hits — zone lookup, DNS record find+delete, Access app
find+delete, tunnel delete — and asserts all three deletes actually
fired plus the tunnel is gone from local state afterward. runDown
never returns an error for an individual step's failure (only prints
a warning and keeps going), so 'did everything actually get called'
is the only way to catch a regression here — a passing test with a
silently-skipped step was the real risk this closes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants