Repository navigation
Add cmp-change-version action - #2
Open
ninovanhooff wants to merge 2 commits into
Open
ninovanhooff wants to merge 2 commits into
ninovanhooff wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Overrides the version code (and optionally version name) of a Compose Multiplatform app for all later Gradle calls in the job, including those started by Xcode, by setting ORG_GRADLE_PROJECT_* environment variables. The version code defaults to the workflow run number plus an offset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ninovanhooff
added a commit
to Q42/Template.ComposeMultiplatform
that referenced
this pull request
Nov 24, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mbernson
approved these changes
Nov 24, 2026
mbernson
left a comment
Member
There was a problem hiding this comment.
The action itself looks good to me. 👍🏼
I don't use a JetBrains IDE myself, so I'd prefer to leave the .idea folder out of this repo and keep things editor-agnostic.
Member
|
The plan for after merging also looks good. You are already a collaborator on this repo, so go ahead! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
cmp-change-versionaction that overrides the version code, and optionally the version name, of a Compose Multiplatform app. It's extracted fromprepare-releasein Q42/Template.ComposeMultiplatform#284, following the review suggestion to share it across projects instead of copying it into every repo.github.run_number + version-code-offset. You can also pass an explicitversion-code.ORG_GRADLE_PROJECT_<property>throughGITHUB_ENV. Gradle reads these as project properties, which take precedence overgradle.properties. So every later Gradle call in the job gets the same value without changing tracked files, includingembedAndSignAppleFrameworkForXcodestarted by Xcode.appVersionCodeandappVersionName.env:instead of being inserted straight into the script, and the version code and offset must be whole numbers.version-codeoutput.Also adds
.gitignorerules for machine-specific JetBrains IDE files.Testing
I extracted the shell script and ran it locally with the default, an offset plus a version name, an explicit version code, and an invalid offset. All four behaved as expected.
After merging
This only adds things, so it's a minor release. Q42/Template.ComposeMultiplatform#284 references
@v1, so it depends on step 3.v1.1.0:v1.1.0. Changes sincev1.0.0:cmp-change-versionactionupload-symbols-to-firebaseaction, which now supports a custom source packages pathinstall-certificateactionv1major tag to the same commit:🤖 Generated with Claude Code