Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make release tag discovery more robust (#2170)
### Ticket closes #2169 ### Problem description Current git stansa `git describe --tags --abbrev=0` can pick up tags from personal dev branches, which will results in empty TTMLIR_VERSION_MAJOR/TTMLIR_VERSION_MINOR defs and a broken build. ### What's changed Final change is to add a glob filter that will select the latest tag matching `v<digit>*.<digit>*`, which is compatible with our current release tag format but should also reduce the probability that a personal dev tag gets picked up. Note that using `git tag --merged main ...` was promising in local builds but seems problematic in CI which uses detached head clones. ### Checklist Tested against multiple tags in a dev branch and observed a CI run succeed with the latest changes.
- Loading branch information