aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authoronur1 <onur1@onurgunduz.com>2023-05-24 23:46:46 +0200
committeronur1 <onur1@onurgunduz.com>2023-05-24 23:46:46 +0200
commitc4ad4cedb47c700a0676479624514159be4894ed (patch)
treeaa5a2edbdfe435d7ec4a1f8b81d8c84bc10fc1c3 /.github/workflows
parent16037dca662bad709d9d70b5645103aeedddf4ac (diff)
downloadmuxer-c4ad4cedb47c700a0676479624514159be4894ed.tar.gz
muxer-c4ad4cedb47c700a0676479624514159be4894ed.zip
Fix github workflow
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