From 0d3c64677db3ee0e971d4918c8a9047c01d49f5b Mon Sep 17 00:00:00 2001 From: Christoph Hofmann Date: Sun, 25 Feb 2024 13:54:59 +0100 Subject: [PATCH] Fix build number and release name in openhab.yml Signed-off-by: Christoph Hofmann --- .github/workflows/openhab.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/openhab.yml b/.github/workflows/openhab.yml index 2fdb6d6b..6e60ff71 100644 --- a/.github/workflows/openhab.yml +++ b/.github/workflows/openhab.yml @@ -25,8 +25,8 @@ jobs: outputs: build_configuration: ${{ steps.detect-build-configuration.outputs.BuildConfiguration }} bundle_Platforms: ${{ steps.detect-build-configuration.outputs.BundlePlatforms }} - build_number: ${{ steps.set-buildnumbe.outputs.BUILD_NUMBER }} - release_name: ${{ steps.set-buildnumbe.outputs.Release_Name }} + build_number: ${{ steps.set-buildnumber.outputs.BUILD_NUMBER }} + release_name: ${{ steps.set-buildnumber.outputs.Release_Name }} steps: - name: Checkout repository uses: actions/checkout@v2 @@ -44,17 +44,17 @@ jobs: } - name: Set build number and release name - id: set-buildnumbe + id: set-buildnumber shell: pwsh run: | $CURRENTDATE = Get-Date -Format "yyyy.MM.dd" - Write-Host "BUILD_NUMBER=${CURRENTDATE}.${{github.run_number}}" >> $env:GITHUB_OUTPUT + Write-Host "BUILD_NUMBER=${CURRENTDATE}" >> $env:GITHUB_ENV $IS_BETA_RELEASE = ${{ inputs.IsBetaRelease }} - if ($IS_BETA_RELEASE) { - Write-Host "RELEASE_NAME=Beta:${CURRENTDATE}.${{github.run_number}}" >> $env:GITHUB_OUTPUT + if ($IS_BETA_RELEASE -eq 'true') { + Write-Host "RELEASE_NAME=Beta:${CURRENTDATE}.${{github.run_number}}" >> $env:GITHUB_ENV } else { - Write-Host "RELEASE_NAME=${CURRENTDATE}" >> $env:GITHUB_OUTPUT + Write-Host "RELEASE_NAME=${CURRENTDATE}" >> $env:GITHUB_ENV } build: