Skip to content

Commit

Permalink
Fix release name assignment and add beta release handling in workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
  • Loading branch information
hoffe86 committed Jan 8, 2025
1 parent 804aa06 commit ecc9b1e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,19 @@ jobs:
run: |
if [ "${{inputs.releaseName}}" == "" ]; then
echo "No release name provided, using build number"
echo releaseName="${{inputs.build_number}}" >> $GITHUB_ENV
release_name="${{inputs.build_number}}"
else
echo "Using provided release name"
export releaseName="${{inputs.releaseName}}" >> $GITHUB_ENV
release_name="${{inputs.releaseName}}" >> $GITHUB_ENV
fi
if[ "${{inputs.beta_release}}" == "true" ]; then
echo "Beta release requested"
release_name="Beta: ${release_name}"
fi
echo releaseName="$(release_name)" >> $GITHUB_ENV
- name: Create a Release
id: create_release
uses: marvinpinto/action-automatic-releases@latest
Expand Down

0 comments on commit ecc9b1e

Please sign in to comment.