Skip to content

fix(ci): fix Helm chart packaging tag detection#27

Merged
ian-flores merged 2 commits intomainfrom
fix-helm-package-tag-detection
Jan 12, 2026
Merged

fix(ci): fix Helm chart packaging tag detection#27
ian-flores merged 2 commits intomainfrom
fix-helm-package-tag-detection

Conversation

@ian-flores
Copy link
Collaborator

Summary

  • Fix package-helm job skipping all steps because git describe couldn't find the release tag
  • Root cause: semantic-release creates a new commit, so the tag is on a child commit rather than an ancestor
  • Solution: checkout main ref and use git tag --sort instead of git describe

Changes

  • Add ref: main to checkout step to get latest commit including the release commit
  • Replace git describe --tags --abbrev=0 with git tag --sort=-version:refname | head -1

Test plan

  • Trigger a release and verify the package-helm job runs successfully
  • Verify Helm chart is packaged and pushed to OCI registry
  • Verify Helm chart is uploaded to GitHub release

The package-helm job was skipping all steps because git describe couldn't
find the release tag. This happened because semantic-release creates a new
commit for the release, so the tag is on a child commit rather than an
ancestor of the triggering commit.

Fix by:
- Checking out main ref to get the latest commit including the release
- Using git tag --sort instead of git describe to find tags regardless
  of commit ancestry
@ian-flores ian-flores marked this pull request as ready for review January 12, 2026 17:24
@ian-flores ian-flores merged commit 9487407 into main Jan 12, 2026
1 of 2 checks passed
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