From e82d6becea7da240e15037eeb34be7f55534d80a Mon Sep 17 00:00:00 2001 From: ndr_brt Date: Thu, 8 Aug 2024 10:11:48 +0200 Subject: [PATCH] build: bump minor version number on release (#133) --- .github/actions/bump-version/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/bump-version/action.yml b/.github/actions/bump-version/action.yml index 501075a..d31189c 100644 --- a/.github/actions/bump-version/action.yml +++ b/.github/actions/bump-version/action.yml @@ -37,10 +37,11 @@ runs: INC=1 else echo "$baseVersion is not a final release version (contains \"$SNAPSHOT\"), will not increase patch" + exit 0; fi # construct the new version - newVersion="$RELEASE_VERSION_MAJOR.$RELEASE_VERSION_MINOR.$((RELEASE_VERSION_PATCH+$INC))"-SNAPSHOT + newVersion="$RELEASE_VERSION_MAJOR.$((RELEASE_VERSION_MINOR+$INC)).0"-SNAPSHOT # replace every occurrence of =$baseVersion with =$newVersion grep -rlz "$existingVersion" . --exclude=\*.{sh,bin} | xargs sed -i "s/$existingVersion/$newVersion/g"