Skip to content
Snippets Groups Projects
Unverified Commit 07754ba6 authored by jlaura's avatar jlaura Committed by GitHub
Browse files

Update version_bump.yml

parent 98215c31
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment