Skip to content
This repository was archived by the owner on Oct 21, 2026. It is now read-only.

ci: fork releases only build main and keep their run's date - #44

Merged
donnes merged 2 commits into
mainfrom
t3code/fork-release-gate-fixes
Sep 29, 2026
Merged

donnes merged 2 commits into
mainfrom
t3code/fork-release-gate-fixes

Conversation

@donnes

@donnes donnes commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #43, fixing two review findings in Fork Release.

Manual releases from other branches. A manual dispatch skipped the release gate for any branch, and the jobs after it built that branch's commit. After a feature branch was published, the scheduled check compared main against it, got behind or diverged, and kept skipping, even once six hours had passed. A dispatch now goes through upstream's assertReleaseSource with the nightly channel. It has to be dispatched from main, and its commit has to be on main.

Version date. The date in the version came from github.run_started_at. That field isn't in the GitHub context, so it evaluated to an empty string and date -u -d "" returned the current day. A run queued past midnight, or a job retried on a later day, got a different tag. The gate job now reads the run's created_at from the Actions API, which stays the same across attempts, and hands the date to the version job. That job needs actions: read.

The gate is now in a fork-only .github/scripts/check-fork-release.cjs, named after upstream's check-nightly-release.cjs, and CI runs its tests: rejecting non-main dispatches, the scheduled six-hour gap, and keeping the date for a run created just before midnight.

Done by Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M labels Sep 29, 2026
@donnes
donnes force-pushed the t3code/fork-release-gate-fixes branch from 75e0e93 to 7f5f962 Compare September 29, 2026 18:14
donnes and others added 2 commits September 29, 2026 15:15
Manual dispatch of Fork Release now has to come from main, since a
published branch build leaves main behind it and stalls later scheduled
releases. The version date now comes from the run's creation time
instead of the undocumented github.run_started_at, which evaluated empty
and fell back to the day the version job happened to run.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@donnes
donnes force-pushed the t3code/fork-release-gate-fixes branch from 7f5f962 to 606f31f Compare September 29, 2026 18:15
@donnes
donnes merged commit f1f5cd7 into main Sep 29, 2026
15 checks passed
@donnes
donnes deleted the t3code/fork-release-gate-fixes branch September 29, 2026 18:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant