Skip to content

Commit

Permalink
some workflow fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
roi-codefresh committed Jul 18, 2022
1 parent b0e2d08 commit 177c1d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 177c1d6

Please sign in to comment.