From bd739a7d7bd19d88f7cdba318e7cd6b9d09c795c Mon Sep 17 00:00:00 2001 From: Cristiano Tofani Date: Tue, 3 Dec 2024 15:45:22 +0100 Subject: [PATCH] fixes release new cycle script --- .github/workflows/release-new-cycle.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-new-cycle.yml b/.github/workflows/release-new-cycle.yml index 87a34f5ef80..c45ff71799e 100644 --- a/.github/workflows/release-new-cycle.yml +++ b/.github/workflows/release-new-cycle.yml @@ -32,15 +32,19 @@ jobs: run: | git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" - if [[ ${{github.event.inputs.releaseLevel}} == "major" ]]; then + + if [[ ${{ github.event.inputs.releaseLevel }} == "major" ]]; then echo "Bumping the major version" yarn start-breaking-cycle - else if [[ ${{github.event.inputs.releaseLevel}} == "minor" ]]; then + elif [[ ${{ github.event.inputs.releaseLevel }} == "minor" ]]; then echo "Bumping the minor version" yarn start-release-cycle - else if [[ ${{github.event.inputs.releaseLevel}} == "patch" ]]; then + elif [[ ${{ github.event.inputs.releaseLevel }} == "patch" ]]; then echo "Bumping the patch version" yarn start-fix-cycle + else + echo "Unknown release level: ${{ github.event.inputs.releaseLevel }}" + exit 1 fi - id: push-tags run: |