feat: add configurable separator for tag components - #7
Open
Bentzeh wants to merge 1 commit into
Open
Conversation
Add new `separator` input parameter that allows customizing the character
used to join tag components (service, date, branch, counter).
Default remains `_` for backward compatibility. Users can set `separator: "-"`
to generate semver-compatible tags, which is required for systems like Capgo
that validate build metadata format.
Example usage:
- uses: koalaops/determine-image-tag@v1
with:
service_name: api
separator: "-" # produces: api-2024-01-15-main-00
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
nadaverell
approved these changes
Jan 29, 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.
Summary
separatorinput parameter to customize the character used between tag components (service, date, branch, counter)_for full backward compatibilityseparator: "-"to generate semver-compatible tagsMotivation
Some deployment systems (e.g., Capgo for mobile apps) require semver-compatible tags where build metadata must use hyphens. The current hardcoded underscore separator (
api_2024-01-15_main_00) produces invalid semver tags for these systems.Usage
Changes
separatorinput (default:_)_Test plan
_) produces same output as before-separator produces hyphen-separated tags🤖 Generated with Claude Code