Update .gitea/workflows/build.yaml
Some checks failed
Release Version / build (push) Failing after 1m14s

This commit is contained in:
leafus 2024-09-29 04:46:37 +02:00
parent 4d4ecf8c11
commit 40dda8edfc

View File

@ -39,10 +39,9 @@ jobs:
latest_version=$(git describe --tags --abbrev=0 || echo "v0.0.0") latest_version=$(git describe --tags --abbrev=0 || echo "v0.0.0")
new_version=$(echo $latest_version | awk -F. '{printf "v%d.%d.%d", $1, $2, $3+1}') new_version=$(echo $latest_version | awk -F. '{printf "v%d.%d.%d", $1, $2, $3+1}')
if git rev-parse "$new_version" >/dev/null 2>&1; then while git rev-parse "$new_version" >/dev/null 2>&1; do
echo "Tag $new_version already exists. Exiting." new_version=$(echo $new_version | awk -F. '{$3+=1; printf "v%d.%d.%d", $1, $2, $3}')
exit 1 done
fi
echo "new_version=$new_version" >> $GITHUB_ENV echo "new_version=$new_version" >> $GITHUB_ENV