From 26acc9601cd7db2131870c05651fb0f93bb65933 Mon Sep 17 00:00:00 2001 From: s3rj1k Date: Thu, 12 Dec 2024 15:12:38 +0100 Subject: [PATCH] [GHA] Default to `release=unstable` in build workflow. --- .github/workflows/build.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ea0d0a28fe..d27560454b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,19 +74,17 @@ jobs: id: release run: | if [[ '${{ github.event_name }}' == 'pull_request' ]]; then - if [[ '${{ github.base_ref }}' == 'master' ]]; then - echo 'release=unstable' | tee -a $GITHUB_OUTPUT - elif [[ '${{ github.base_ref }}' == 'v1.10' ]]; then + if [[ '${{ github.base_ref }}' == 'v1.10' ]]; then echo 'release=release' | tee -a $GITHUB_OUTPUT + else + echo 'release=unstable' | tee -a $GITHUB_OUTPUT fi elif [[ '${{ github.event_name }}' == 'workflow_dispatch' ]]; then echo 'release=${{ inputs.release }}' | tee -a $GITHUB_OUTPUT - elif [[ '${{ github.ref }}' == 'refs/heads/master' ]]; then - echo 'release=unstable' | tee -a $GITHUB_OUTPUT elif [[ '${{ github.ref }}' == 'refs/heads/v1.10' ]]; then echo 'release=release' | tee -a $GITHUB_OUTPUT else - exit 1 + echo 'release=unstable' | tee -a $GITHUB_OUTPUT fi get-nonce: