set version
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Michael Grote 2024-05-08 14:52:08 +02:00
parent 28b413e936
commit 5b935e9930

View file

@ -17,7 +17,7 @@ steps:
# set version # set version
- | - |
MAJOR="1" MAJOR="1"
MINOR="1" MINOR="0"
PATCH="$(git rev-list --count "$CI_COMMIT_BRANCH")" PATCH="$(git rev-list --count "$CI_COMMIT_BRANCH")"
VERSION="v$MAJOR.$MINOR.$PATCH" VERSION="v$MAJOR.$MINOR.$PATCH"
if [ "$CI_COMMIT_BRANCH" != "main" ] && [ "$CI_COMMIT_BRANCH" != "master" ]; then if [ "$CI_COMMIT_BRANCH" != "main" ] && [ "$CI_COMMIT_BRANCH" != "master" ]; then