From 545623f36675f265a0665354c8a3f1f751af5361 Mon Sep 17 00:00:00 2001 From: Loren Gordon Date: Tue, 20 Jun 2023 07:55:22 -0700 Subject: [PATCH 1/2] Tightens the logic getting the current version to avoid multiple returns --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" From aa26414278b5f2d54e84f8f26dbc8f96dc8ab0ef Mon Sep 17 00:00:00 2001 From: Loren Gordon Date: Tue, 20 Jun 2023 07:55:25 -0700 Subject: [PATCH 2/2] Bumps version to 1.2.1 --- .bumpversion.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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