Skip to content

feat: consistent git tag behavior across all publishing workflows#54

Merged
tehw0lf merged 1 commit intomainfrom
feature/consistent-git-tag-behavior
Mar 27, 2026
Merged

feat: consistent git tag behavior across all publishing workflows#54
tehw0lf merged 1 commit intomainfrom
feature/consistent-git-tag-behavior

Conversation

@tehw0lf
Copy link
Copy Markdown
Owner

@tehw0lf tehw0lf commented Mar 27, 2026

Summary

Standardizes git tag handling across all publishing workflows to a consistent pattern:

  • Git tag: set explicitly if not yet present, ::warning:: if already exists (never fail)
  • GitHub Release (where applicable): ::warning:: + skip if release already exists (previously exit 3)

Changes per workflow

Workflow Before After
release-github.yml exit 3 if release exists Explicit git tag step (warn+skip if exists) + warn+skip if release exists
release-android-apk.yml exit 3 if release exists Same as above
publish-npm-libraries.yml No git tag at all Git tag from package.json, warn+skip if exists
publish-python-libraries.yml ::notice:: if tag exists ::warning:: for consistency
publish-docker-image.yml No git tag at all Git tag from version extraction, first matrix job only, warn+skip if exists

Notes

  • Docker git tag only runs on matrix.docker == fromJson(inputs.docker_meta)[0] since the tag is independent of platform
  • softprops/action-gh-release handles pre-existing tags gracefully (reuses them), so the explicit tag step is safe
  • Race conditions between parallel workflows (e.g. npm + github release) are handled: both try to set the tag, one succeeds, the other warns and continues

Test plan

  • Trigger a workflow run where the tag does not exist yet → tag should be created
  • Re-trigger the same version → warning logged, release step skipped, workflow succeeds

…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
@tehw0lf tehw0lf merged commit f0e0735 into main Mar 27, 2026
2 checks passed
@tehw0lf tehw0lf deleted the feature/consistent-git-tag-behavior branch March 27, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant