Skip to content

ci: roll dev-latest tag to dev-HEAD on each publish#94

Merged
alandtse merged 1 commit into
devfrom
ci/roll-dev-latest-tag
Jun 3, 2026
Merged

ci: roll dev-latest tag to dev-HEAD on each publish#94
alandtse merged 1 commit into
devfrom
ci/roll-dev-latest-tag

Conversation

@alandtse

@alandtse alandtse commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Problem

The dev nightly is running and succeeding daily — but the dev-latest rolling prerelease looks frozen. Three references that should be one commit had drifted:

Reference Commit
dev HEAD dc88209 Jun 2
release body ("built at") cac323d9 (#79) Jun 2
dev-latest tag 1e8fda46 (#58) May 28

The tag was pinned to the commit where this workflow first published, ~6 days stale. So the release's target commit and git checkout dev-latest source were stale, and the page read as "nightlies stopped" even though the attached .7z was current.

Root cause

publish-release uses ncipollo/release-action with allowUpdates: true and passes commit:. ncipollo honors commit only when creating a tag — on update it never moves an existing ref. The tag pinned to its creation commit forever.

Fix

Add a step in release-dev.yaml's prerelease job that force-rolls the dev-latest ref to github.sha before the ncipollo publish (creating it on first run). The job already has contents: write.

Scoped to release-dev only — the shared publish-release action and its immutable semver release tags are untouched.

Verification

YAML lints clean (pre-commit). Effect is observable on the next publish: dev-latest tag will equal dev-HEAD, matching the body/asset. No mod/runtime code touched (ci: → no release).

The rolling dev-latest prerelease froze its tag at the commit where this
workflow first published: ncipollo/release-action honors `commit:` only
when it creates a tag, not on allowUpdates updates. So the tag, the release
"target" commit, and `git checkout dev-latest` source all stuck days behind
dev while only the body and .7z asset advanced — the release looked dead
even though nightly builds ran fine.

Force-move the ref to github.sha before the ncipollo publish so the rolling
release tracks dev-HEAD. Scoped to release-dev only; the shared
publish-release action keeps semver release tags immutable.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 3, 2026 08:41
@coderabbitai

coderabbitai Bot commented Jun 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@alandtse, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 57 minutes and 45 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: cf27acd1-0c82-4700-919d-0f3b2359f6fb

📥 Commits

Reviewing files that changed from the base of the PR and between dc88209 and 4ce163d.

📒 Files selected for processing (1)
  • .github/workflows/release-dev.yaml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/roll-dev-latest-tag

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the release-dev GitHub Actions workflow so the rolling dev-latest tag is actively moved to the exact commit that was built, ensuring the prerelease page/tag/source checkout consistently track dev HEAD rather than the tag’s original creation commit.

Changes:

  • Adds a pre-publish step that force-updates (or creates) the dev-latest tag ref to github.sha via the GitHub API.
  • Clarifies inline workflow comments to document why the explicit tag-roll step is necessary with ncipollo/release-action + allowUpdates.

@alandtse alandtse merged commit 29d296c into dev Jun 3, 2026
12 checks passed
@alandtse alandtse deleted the ci/roll-dev-latest-tag branch June 3, 2026 08:48
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