Unverified Commit 07754ba6 authored by jlaura's avatar jlaura Committed by GitHub
Browse files

Update version_bump.yml

parent 98215c31
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -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