Skip to content

Commit

Permalink
Fix build number and release name in openhab.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hofmann <[email protected]>
  • Loading branch information
hoffe86 committed Feb 25, 2024
1 parent 11a1477 commit 0d3c646
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/openhab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 0d3c646

Please sign in to comment.