Skip to content

Commit

Permalink
Merge pull request #180 from sbe-arg/fix/major
Browse files Browse the repository at this point in the history
Hotfix: remove v check for major tag
  • Loading branch information
sbe-arg committed Sep 13, 2022
2 parents f8ad7df + 475532b commit d2e4f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Expand Up @@ -25,7 +25,7 @@ jobs:
git fetch --tags
tagFmt="^v?[0-9]+\.[0-9]+\.[0-9]+$"
tag="$(git for-each-ref --sort=-v:refname --format '%(refname:lstrip=2)' | grep -E "$tagFmt" | head -n 1)"
[[ "$tag" =~ ^(v[0-9]+) ]]
[[ "$tag" =~ ^([0-9]+) ]] # use ^(v[0-9]+) for vX
major=${BASH_REMATCH[1]}
# update major tag
git tag -f "$major"
Expand Down

0 comments on commit d2e4f56

Please sign in to comment.