From 07754ba6ba68e951fe2662e7ccf2ab4e795f13ca Mon Sep 17 00:00:00 2001 From: jlaura Date: Thu, 26 Aug 2021 15:01:47 -0700 Subject: [PATCH] Update version_bump.yml --- .github/workflows/version_bump.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index b7017ec8..9d7e148e 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -44,12 +44,11 @@ jobs: if: steps.bump-type.outputs.bump-type != 'null' run: | CURRENT_VERSION='python setup.py --version' - if ${BUMP_TYPE} == 'major' - then + if ${BUMP_TYPE} == 'major'; then NEW_VERSION=`IFS='.' read -ra SPLITVER <<< "$VERSION"; echo $(("${SPLITVER[0]}"+1))."${SPLITVER[1]}"."${SPLITVER[2]}";` - elif ${BUMP_TYPE} == 'minor' + elif ${BUMP_TYPE} == 'minor'; then NEW_VERSION=`IFS='.' read -ra SPLITVER <<< "$VERSION"; echo "${SPLITVER[0]}".$(("${SPLITVER[1]}"+1))."${SPLITVER[2]}";` - elif ${BUMP_TYPE} == 'patch' + elif ${BUMP_TYPE} == 'patch'; then NEW_VERSION=`IFS='.' read -ra SPLITVER <<< "$VERSION"; echo "${SPLITVER[0]}"."${SPLITVER[1]}".$(("${SPLITVER[2]}"+1));` fi - name: Update version in setup.py @@ -63,4 +62,4 @@ jobs: uses: EndBug/add-and-commit@v7 with: branch: ${{ github.event.pull_request.base.ref }} - message: 'Bump version to ${{ steps.new-version.outputs.new-version }}' \ No newline at end of file + message: 'Bump version to ${{ steps.new-version.outputs.new-version }}' -- GitLab