Skip to content

Commit

Permalink
build: bump minor version number on release (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt authored Aug 8, 2024
1 parent af0446f commit e82d6be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/bump-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e82d6be

Please sign in to comment.