From a6de92a319d18a03c4a072fc25130be57fb43cd5 Mon Sep 17 00:00:00 2001 From: tri Date: Wed, 29 May 2024 06:22:50 -0700 Subject: [PATCH] action to be able to make release build outside of master branch --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index bb117a40a..df8093d58 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -43,9 +43,9 @@ jobs: run: | if [[ "$GITHUB_EVENT_NAME" == "pull_request" ]] || [[ "$GITHUB_REF" == *develop ]] || [[ "$GITHUB_REF" == *ft/* ]] || [[ "$GITHUB_REF" == *bug/* ]]; then version=${{ steps.versions.outputs.snapshot-version }} - elif [[ "$GITHUB_EVENT_NAME" != "pull_request" ]] && [[ "$GITHUB_REF" == *"release/"* ]]; then + elif [[ "$GITHUB_EVENT_NAME" != "pull_request" ]] && [[ "$GITHUB_REF" == *"release/candidate"* ]]; then version=${{ steps.versions.outputs.candidate-version }} - elif [[ "$GITHUB_EVENT_NAME" != "pull_request" ]] && [[ "$GITHUB_REF" == "refs/heads/master" ]]; then + elif [[ "$GITHUB_EVENT_NAME" != "pull_request" ]] && ([[ "$GITHUB_REF" == "refs/heads/master" ]] || [[ "$GITHUB_REF" == *"release/"* ]]); then version=${{ steps.versions.outputs.release-version }} fi echo "version is: [$version]"