diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index b7017ec821c8fb0618f48c824e64d754887a1576..9d7e148e897e0765990cd7e0387ed777426e0612 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 }}'