Skip to content

Commit

Permalink
Fix typo in release name setting and improve variable handling in wor…
Browse files Browse the repository at this point in the history
…kflow

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
  • Loading branch information
hoffe86 committed Jan 8, 2025
1 parent e9f3a78 commit 1b74e41
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,25 @@ jobs:
run: ls -la
working-directory: '${{env.BuildDirectory}}'

- name: Set release nane
- name: Set release name
run: |
if [ -z "${{inputs.releaseName}}" ]; then
if [ -z "${releaseName}" ]; then
echo "No release name provided, using build number"
release_name="${{inputs.build_number}}"
release_name="${{ inputs.build_number }}"
else
echo "Using provided release name"
release_name="${{inputs.releaseName}}" >> $GITHUB_ENV
release_name="${releaseName}"
fi
if [ "${{inputs.beta_release}}" == "true" ]; then
if [ "${beta_release}" == "true" ]; then
echo "Beta release requested"
release_name="Beta: ${release_name}"
fi
echo "releaseName=$(release_name)" >> $GITHUB_ENV
echo "releaseName=${release_name}" >> $GITHUB_ENV
env:
releaseName: ${{inputs.releaseName}}
beta_release: ${{inputs.beta_release}}
releaseName: ${{ inputs.releaseName }}
beta_release: ${{ inputs.beta_release }}

- name: Create a Release
id: create_release
Expand Down

0 comments on commit 1b74e41

Please sign in to comment.