Skip to content

Commit

Permalink
fix release tag (rancher#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
enrichman authored Jan 22, 2025
1 parent b0aa22b commit c285004
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Check release tag
id: release-tag
run: |
CURRENT_TAG=$(git describe --tag --always)
CURRENT_TAG=$(git describe --tag --always --match="v[0-9]*")
if git show-ref --tags ${CURRENT_TAG} --quiet; then
echo "tag ${CURRENT_TAG} already exists";
Expand Down
2 changes: 1 addition & 1 deletion scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e pipefail

TAG=$(git describe --tag --always)
TAG=$(git describe --tag --always --match="v[0-9]*")

if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
TAG="${TAG}-dirty"
Expand Down

0 comments on commit c285004

Please sign in to comment.