diff --git a/.github/workflows/bump.yaml b/.github/workflows/bump.yaml index cb276135..ac2e2615 100644 --- a/.github/workflows/bump.yaml +++ b/.github/workflows/bump.yaml @@ -45,8 +45,8 @@ jobs: git config --global user.name "$GITHUB_ACTOR" git config --global user.email "$CI_COMMIT_EMAIL" - echo "bump_rule" - echo ${{ inputs.bump_rule }} + USER_INPUT=${{ github.event.inputs.bump_rule }} + BUMP_RULE=${USER_INPUT:-"no-pre-release"} BASE_VERSION=`cat VERSION` echo "Bumping from version $BASE_VERSION" @@ -55,8 +55,8 @@ jobs: python python-packages/input4MIPs-CVs/src/input4MIPs_CVs/cli/version.py bump "no-pre-release" --no-pre-release --repo-root-dir . # Bump to new release - if [ "${{ inputs.bump_rule }}" != "no-pre-release" ]; then - python python-packages/input4MIPs-CVs/src/input4MIPs_CVs/cli/version.py bump "${{ inputs.bump_rule }}" --no-pre-release --repo-root-dir . + if [ "${BUMP_RULE}" != "no-pre-release" ]; then + python python-packages/input4MIPs-CVs/src/input4MIPs_CVs/cli/version.py bump "${BUMP_RULE}" --no-pre-release --repo-root-dir . fi NEW_VERSION=`cat VERSION`