feat: consistent git tag behavior across all publishing workflows#54
Merged
feat: consistent git tag behavior across all publishing workflows#54
Conversation
…rkflows - release-github, release-android-apk: replace exit 3 on existing release with explicit git tag step (warning if exists) + separate release existence check that warns and skips instead of failing - publish-npm-libraries: add git tag step using version from package.json, warning if tag already exists - publish-python-libraries: upgrade ::notice:: to ::warning:: for consistency - publish-docker-image: add git tag step for first matrix job only (tag is independent of platform), warning if tag already exists
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
Standardizes git tag handling across all publishing workflows to a consistent pattern:
::warning::if already exists (never fail)::warning::+ skip if release already exists (previouslyexit 3)Changes per workflow
release-github.ymlexit 3if release existsrelease-android-apk.ymlexit 3if release existspublish-npm-libraries.ymlpackage.json, warn+skip if existspublish-python-libraries.yml::notice::if tag exists::warning::for consistencypublish-docker-image.ymlNotes
matrix.docker == fromJson(inputs.docker_meta)[0]since the tag is independent of platformsoftprops/action-gh-releasehandles pre-existing tags gracefully (reuses them), so the explicit tag step is safeTest plan