diff --git a/.bumpversion.cfg b/.bumpversion.cfg index a5731e4..027e002 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.2.0 +current_version = 1.2.1 commit = True message = Bumps version to {new_version} tag = False diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f7ef63..2952edb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,7 +54,7 @@ jobs: set -eu -o pipefail RELEASE=false PRIOR_VERSION=$(git describe --abbrev=0 --tags || true) - RELEASE_VERSION=$(grep current_version .bumpversion.cfg | sed 's/^.*= //' ) + RELEASE_VERSION=$(grep -E "current_version\s*=" .bumpversion.cfg | sed 's/^.*= //' ) if [[ "$PRIOR_VERSION" != "$RELEASE_VERSION" ]]; then RELEASE=true; fi echo "condition=${RELEASE}" echo "version=${RELEASE_VERSION}"