From c4624879474092ca3a5e11a19aca0b3180c430ee Mon Sep 17 00:00:00 2001 From: Dominik Kapusta Date: Thu, 14 Mar 2024 08:33:52 +0100 Subject: [PATCH] Case --- .github/workflows/bump_internal_release.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/bump_internal_release.yml b/.github/workflows/bump_internal_release.yml index 83f1e939d8..fb686b8f79 100644 --- a/.github/workflows/bump_internal_release.yml +++ b/.github/workflows/bump_internal_release.yml @@ -65,12 +65,18 @@ jobs: latest_tag="$(git describe --tags --abbrev=0)" changed_files="$(git diff --name-only "$latest_tag".."origin/${release_branch}")" - if grep -v -E '.github|scripts' <<< "$changed_files"; then - echo "::warning::No changes to the release branch (or only changes to scripts and workflows). Skipping automatic release." - echo "skip-release=true" >> $GITHUB_OUTPUT - else - echo "skip-release=false" >> $GITHUB_OUTPUT - fi + case grep -v -E '.github|scripts' <<< "$changed_files" in + 0) + echo "::warning::No changes to the release branch (or only changes to scripts and workflows). Skipping automatic release." + echo "skip-release=true" >> $GITHUB_OUTPUT + ;; + 1) + echo "skip-release=false" >> $GITHUB_OUTPUT + ;; + *) + exit + ;; + esac # fi - name: Extract Asana Task ID