Skip to content

Commit

Permalink
Workaround GitHub oddity
Browse files Browse the repository at this point in the history
  • Loading branch information
znichollscr committed Aug 5, 2024
1 parent 3b3fc8b commit e8fc3f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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`
Expand Down

0 comments on commit e8fc3f8

Please sign in to comment.