Skip to content

Commit

Permalink
Change tag handling
Browse files Browse the repository at this point in the history
  • Loading branch information
timvanoostrom committed May 6, 2024
1 parent 2b6de8c commit 5eb837e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ RELEASE_BRANCH="${BRANCH}-v${NEW_TAG}" && \
echo "Creating branch $RELEASE_BRANCH" && \
git branch -m "$RELEASE_BRANCH" && \

echo "New tag $NEW_TAG" && \
git tag -a "$NEW_TAG" -m "Production ${NEW_TAG}" && \
echo "New tag: release-v${NEW_TAG}" && \
git tag -a "release-v${NEW_TAG}" -m "Production ${NEW_TAG}" && \

echo "Pushing branch $RELEASE_BRANCH" && \
git push origin --follow-tags "$RELEASE_BRANCH" && \
Expand Down
5 changes: 3 additions & 2 deletions scripts/semver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ fi
# echo "Current Version: $CURRENT_VERSION"



#replace release-v text from tag
CURRENT_VERSION_NUMS=(${CURRENT_VERSION//release-v/})
#replace . with space so can split into an array
CURRENT_VERSION_PARTS=(${CURRENT_VERSION//./ })
CURRENT_VERSION_PARTS=(${CURRENT_VERSION_NUMS//./ })

#get number parts
VNUM1=${CURRENT_VERSION_PARTS[0]}
Expand Down

0 comments on commit 5eb837e

Please sign in to comment.