Fix empty iOS release version on release event#108
Merged
viktorvrchlavsky merged 1 commit intoJun 23, 2026
Conversation
`ios-kmp-selfhosted-release.yml` derived the Fastlane version from `github.ref_name`, which is empty on `release`-triggered runs. The `parse-version-tag.sh` step then received an empty `VERSION_TAG` and failed with "Tag '' does not match expected format 'x.y.z'". Prefer the release payload (`github.event.release.tag_name`) and fall back to `github.ref_name` so push-tag triggers keep working. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ssestak
approved these changes
Jun 23, 2026
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.
Problem
The reusable iOS release workflow
ios-kmp-selfhosted-release.ymlderives the Fastlane version fromgithub.ref_name:On a
release-triggered run (on: release: [published]),github.ref_nameis empty. The downstreamios-fastlane-releaseaction maps it toVERSION_TAGforparse-version-tag.sh, which then fails:Observed in
uniapp-kmprelease1.0.7(failed run). It reproduces on the first attempt (not a re-run artifact), and the Android job in the same run — which readsgithub.event.release.tag_name— succeeded with1.0.7.Fix
Prefer the release payload, fall back to
github.ref_name:releaseevents → usesgithub.event.release.tag_name(the actual tag, and it survives re-runs since it comes from the stored event payload).github.event.releaseisnull, so it falls back togithub.ref_name(the tag). Fully backward compatible; no input/interface change.Release / rollout
Needs a new tag (e.g.
2.4.2) after merge. Consumers (e.g.uniapp-kmp/.github/workflows/on_release.yml) then bump theirios-kmp-selfhosted-release.yml@…ref to pick it up.🤖 Generated with Claude Code