Skip to content

fix(ci): skip auto-tag when no new commits since latest tag#399

Merged
drew merged 1 commit intomainfrom
skip-empty-auto-tag/an
Mar 17, 2026
Merged

fix(ci): skip auto-tag when no new commits since latest tag#399
drew merged 1 commit intomainfrom
skip-empty-auto-tag/an

Conversation

@drew
Copy link
Collaborator

@drew drew commented Mar 17, 2026

Summary

Prevents the nightly release-auto-tag workflow from creating redundant patch tags when there are no new commits since the latest tag.

Changes

  • Added a git rev-list check after finding the latest tag to count commits between it and HEAD
  • If the count is zero, sets a skip output and exits early
  • Added if: steps.version.outputs.skip != 'true' guards on the "Create and push tag" and "Trigger Release Tag workflow" steps

Testing

  • mise run pre-commit passes
  • Unit tests added/updated
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

@drew drew requested a review from a team as a code owner March 17, 2026 16:23
@drew drew self-assigned this Mar 17, 2026
@drew drew merged commit 5439f47 into main Mar 17, 2026
10 checks passed
@drew drew deleted the skip-empty-auto-tag/an branch March 17, 2026 16:28
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.

2 participants