Skip to content

Commit 41b3804

Browse files
fix(release): keep the moving major-tag release title in sync
The sync step only clobbered assets on existing major-tag releases, leaving the title stale (e.g. "latest v2.0.1" after v2.0.2 shipped). Add a `gh release edit --title` so the title reflects the latest version, and fix the current v2 release title manually. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 9e40987 commit 41b3804

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ jobs:
114114
# `uses: ...@vN` can fetch machin-secure-linux-amd64.tar.gz by URL.
115115
if gh release view "$MAJOR" >/dev/null 2>&1; then
116116
gh release upload "$MAJOR" dist/machin-secure-linux-amd64.tar.gz dist/SHA256SUMS.txt --clobber
117+
gh release edit "$MAJOR" --title "${MAJOR} (moving — latest ${TAG})"
117118
else
118119
gh release create "$MAJOR" dist/machin-secure-linux-amd64.tar.gz dist/SHA256SUMS.txt \
119120
--generate-notes --title "${MAJOR} (moving — latest ${TAG})"

0 commit comments

Comments
 (0)