From 2bd327c560fb1f7701cc28f996f71ae4947fb6f6 Mon Sep 17 00:00:00 2001 From: Christoph Hofmann Date: Wed, 8 Jan 2025 18:36:47 +0100 Subject: [PATCH] Fix release name assignment condition and improve beta release handling in workflow Signed-off-by: Christoph Hofmann --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9e13ebb..43811bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,7 +49,7 @@ jobs: - name: Set release nane run: | - if [ "${{inputs.releaseName}}" == "" ]; then + if [ -z "${{inputs.releaseName}}" ]; then echo "No release name provided, using build number" release_name="${{inputs.build_number}}" else @@ -57,12 +57,15 @@ jobs: release_name="${{inputs.releaseName}}" >> $GITHUB_ENV fi - if[ "${{inputs.beta_release}}" == "true" ]; then + if [ "${{inputs.beta_release}}" == "true" ]; then echo "Beta release requested" release_name="Beta: ${release_name}" fi echo releaseName="$(release_name)" >> $GITHUB_ENV + env: + releaseName: ${{inputs.releaseName}} + beta_release: ${{inputs.beta_release}} - name: Create a Release id: create_release