Skip to content

Add release script to bump patch tag and trigger goreleaser pipeline - #968

Merged
cdalar merged 2 commits into
mainfrom
add-release-script
Jul 11, 2026
Merged

cdalar merged 2 commits into
mainfrom
add-release-script

Conversation

@cdalar

@cdalar cdalar commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds scripts/release.sh: reads the latest vX.Y.Z tag, bumps the patch number, and pushes the new tag — which triggers .github/workflows/goreleaser.yml (fires on push: tags: v*).
  • Before tagging, verifies the local self-hosted Actions runner (~/cdalar/actions-runner/run.sh) is running (required since the goreleaser job runs on [self-hosted, macOS, ARM64]), and starts it if it isn't.

Test plan

  • Run scripts/release.sh on a test tag / dry environment to confirm patch bump logic
  • Confirm runner start/detect logic works when runner is stopped
  • Confirm pushed tag triggers the goreleaser workflow as expected

Also ensures the local self-hosted Actions runner is running, since
the goreleaser job requires it.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 84932b66a0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/release.sh Resolved
Comment thread scripts/release.sh Resolved
Address Codex review feedback on #968:
- Refuse to tag unless HEAD is on RELEASE_BRANCH (default main), the
  working tree is clean, and local matches origin/main — otherwise a
  release from a feature branch or stale checkout would push a v* tag
  goreleaser.yml releases on.
- Filter to strict vMAJOR.MINOR.PATCH tags before picking "latest",
  so a prerelease tag (e.g. v1.2.4-rc.1, allowed by this repo's
  `prerelease: auto` goreleaser config) can't be selected and abort
  the script instead of bumping the latest stable release.
@cdalar
cdalar merged commit a20f6ba into main Jul 11, 2026
13 of 18 checks passed
@cdalar
cdalar deleted the add-release-script branch July 11, 2026 08:26
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.

1 participant

⌂ 换网址