Skip to content

Commit

Permalink
Fix release name assignment condition and improve beta release handli…
Browse files Browse the repository at this point in the history
…ng in workflow

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
  • Loading branch information
hoffe86 committed Jan 8, 2025
1 parent ecc9b1e commit 2bd327c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,23 @@ 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
echo "Using provided release name"
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
Expand Down

0 comments on commit 2bd327c

Please sign in to comment.