From c4ad4cedb47c700a0676479624514159be4894ed Mon Sep 17 00:00:00 2001 From: onur1 Date: Wed, 24 May 2023 23:46:46 +0200 Subject: Fix github workflow --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.github/workflows') 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 -- cgit v1.3.1