aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index cae42fc..2b0524e 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -54,7 +54,7 @@ jobs:
then
impact="patch"
fi
- current=$(git tag | sort -r | grep "^[0-9]*\.[0-9]*\.[0-9]" | sort -t "." -k1,1nr -k2,2nr -k3,3nr | head -1 2> /dev/null) || true
+ current=$(git tag | sort -r | grep "^v[0-9]*\.[0-9]*\.[0-9]" | sort -t "." -k1,1nr -k2,2nr -k3,3nr | cut -c2- | head -1 2> /dev/null) || true
if [[ -z "$current" ]]; then
current='0.0.0'
fi
@@ -80,8 +80,8 @@ jobs:
commit=$(git rev-parse HEAD)
local next
if [[ -z "$(git describe --contains "$commit" 2>/dev/null)" ]]; then
- next="$(next_version "$1")"
- git tag "v$next"
+ next="v$(next_version "$1")"
+ git tag "$next"
git config user.name github-actions
git config user.email github-actions@github.com
git push --tags