From 177c1d60968a690a819c0dd2a0da7b8e55ceb8e1 Mon Sep 17 00:00:00 2001 From: "roi.kramer" Date: Mon, 18 Jul 2022 10:10:11 +0300 Subject: [PATCH] some workflow fixes --- build/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/release.yml b/build/release.yml index aecb7a8e..4a4c6241 100644 --- a/build/release.yml +++ b/build/release.yml @@ -28,8 +28,8 @@ steps: - cf_export PATH=$PATH:/codefresh/volume/gopath/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin # must have brew in path for final brew step - (echo "${{CF_BRANCH}}" | grep -Eq '^release-v(\d+\.)?(\d+\.)?(\*|\d+)$') && echo on release branch || (echo not on release branch && exit 1) - RELEASE_VER=$(echo ${{CF_BRANCH_TAG_NORMALIZED_LOWER_CASE}} | sed -E 's/^release-([^"]+).*/\1/') - - cf_export RELEASE_VER - - (gh release view ${RELEASE_VER} --repo ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}) && (echo release with the same name already exists && exit 1) || echo no release with the name ${{CF_BRANCH}}, we can continue! + - cf_export RELEASE_VER=$RELEASE_VER + - (gh release view ${RELEASE_VER} --repo ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}) && (echo release with the same name already exists && exit 1) || echo no release with the name ${RELEASE_VER}, we can continue! when: steps: - name: main_clone