Skip to content

Add release workflows for version bumping#220

Merged
em3s merged 3 commits intomainfrom
feature/release-workflows
Mar 26, 2026
Merged

Add release workflows for version bumping#220
em3s merged 3 commits intomainfrom
feature/release-workflows

Conversation

@em3s
Copy link
Copy Markdown
Contributor

@em3s em3s commented Mar 24, 2026

Summary

Add automated release workflows for version bumping and post-release tasks.

Bump Version (bump-version.yml)

  • Manual trigger via workflow_dispatch with version input
  • Validates version format and checks current version is SNAPSHOT
  • Creates a PR to update gradle.properties

Post Release (post-release.yml)

  • Triggered automatically when a release/v* PR is merged to main
  • Creates a version tag (e.g., v0.2.0)
  • Creates a release branch (e.g., 0.2.x) with the next patch SNAPSHOT
  • Opens a follow-up PR to bump main to the next minor SNAPSHOT

Flow

1. [manual]    Actions tab → "Bump Version" → enter version (e.g., 0.2.0)
               → PR #1: "Bump version to 0.2.0"
2. [manual]    Merge PR #1
               → (automatic) tag v0.2.0
               → (automatic) create 0.2.x branch (0.2.1-SNAPSHOT)
               → (automatic) PR #2: "Bump version to 0.3.0-SNAPSHOT"
3. [manual]    Merge PR #2
               → main is now 0.3.0-SNAPSHOT

Test plan

  • Run "Bump Version" workflow manually and verify PR is created with correct version
  • Merge the PR and verify post-release creates tag, release branch, and follow-up PR
  • Merge the follow-up PR and verify main is bumped to the next SNAPSHOT

…automation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Mar 24, 2026
em3s and others added 2 commits March 24, 2026 22:54
Replace direct push to main in post-release workflow with
peter-evans/create-pull-request, requiring explicit PR merge
to bump main to the next SNAPSHOT version.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add missing checkout to main + sed before creating next SNAPSHOT PR
- Pass inputs via env vars to prevent shell injection

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@em3s em3s merged commit 33ec503 into main Mar 26, 2026
7 checks passed
@em3s
Copy link
Copy Markdown
Contributor Author

em3s commented Mar 26, 2026

Test passed.

#222 #223

eazyhozy pushed a commit that referenced this pull request Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant