From 65da4bfbfc4ee0e88b0a88078b42a2380165d64b Mon Sep 17 00:00:00 2001 From: Kenneth Bingham Date: Wed, 8 Jun 2022 14:04:26 -0400 Subject: [PATCH] also omit CI version suffix if branch == main --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f17bc2c78..e42e5f36f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -158,7 +158,7 @@ jobs: # fail the job because we could not obtain the current version from ziti-ci echo "ERROR: ZITI_VERSION=${ZITI_VERSION}" exit 1 - elif [[ "${GITHUB_REF}" =~ ^refs/heads/release-v ]]; then + elif [[ "${GITHUB_REF}" =~ ^refs/heads/(release-v|main/) ]]; then # Set output parameters for release branches echo "DEBUG: ZITI_VERSION=${ZITI_VERSION}" echo ::set-output name=ziti-version::${ZITI_VERSION}