Add build/version number overrides to iOS actions#80
Merged
Conversation
Add optional build_number and version_number inputs to ios-fastlane-beta and ios-fastlane-release actions, and to the on-demand build workflow. The release action now parses version tags in x.y.z-k format to automatically extract build numbers from tags, while explicit build_number input takes precedence. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Stop extracting build_number from version tags — it now only comes from the explicit build_number input. The tag regex accepts any suffix after the first dash (e.g. 1.2.3-beta, 1.2.3-rc1) and extracts only the x.y.z portion as version_number. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Document the relaxed version tag format (x.y.z-* suffix ignored) and that build_number is never derived from tags. Add release action BATS test commands to the testing section. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jmarek41
reviewed
Feb 23, 2026
Replace verbose string concatenation with array-based arg building, removing the shellcheck disable directive. Addresses PR #80 readability feedback. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Add optional
build_numberandversion_numberinputs to iOS Fastlane beta and release actions, and wire them through the on-demand build workflow. This lets consumers override auto-incremented build numbers and default versions without modifying Fastlane configuration.Changes
parse-version-tag.sh— strips suffixes (1.2.3-beta.1→1.2.3)FASTLANE_ARGSfrom the new inputsNotes
Do not merge until pull request in the Futured fastlane repository is merged, since the fastlane API will not be ready.
Diagram
View diagram
flowchart TD A["Workflow Inputs<br/>build_number, version_number"] --> B{"Action type"} B -->|Beta| C["ios-fastlane-beta"] B -->|Release| D["ios-fastlane-release"] D --> E["parse-version-tag.sh<br/>x.y.z-* → x.y.z"] E --> F["release.sh"] C --> G["beta.sh"] G --> H["Build FASTLANE_ARGS<br/>conditionally from inputs"] F --> H H --> I["fastlane beta/release<br/>build_number:X version_number:Y"]🤖 Generated with Claude Code