Skip to content

Commit

Permalink
Update build-with-firmwware.yml
Browse files Browse the repository at this point in the history
Signed-off-by: DerSkythe <[email protected]>
  • Loading branch information
derskythe authored Dec 19, 2023
1 parent f5979d3 commit 64ba4b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-with-firmwware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
shell: pwsh
run: |
$ReleaseVersion = ([string]::IsNullOrWhitespace($env:INPUT_VERSION) ? $env:CURRENT_VERSION : $env:INPUT_VERSION)
if ( $ReleaseVersion.StartsWith('v') ) {
$ReleaseVersion = $ReleaseVersion.Substring(1)
}
Write-Output ('RELEASE_VERSION={0}' -f $ReleaseVersion) >> $env:GITHUB_ENV
- name: Copy Firmware Files
Expand Down Expand Up @@ -85,8 +88,9 @@ jobs:
cd '${{ env.OFW_PATH }}'
if ( '${{ env.CURRENT_VERSION }}' -ne '${{ env.RELEASE_VERSION }}' ) {
Write-Output '::warning title=Different version::Current version is ${{ env.CURRENT_VERSION }} but we trying to build ${{ env.RELEASE_VERSION }}'
git checkout tags/v${{ env.RELEASE_VERSION }} -b tmp-build
if ( $LASTEXITCODE -ne 0 ) {
Write-Error '::error title=Cannot checkout to this version::Error during execution checkout to this tag ${{ env.RELEASE_VERSION }}'
exit 1
Expand All @@ -110,6 +114,7 @@ jobs:
if ( '${{ env.CURRENT_VERSION }}' -ne '${{ env.RELEASE_VERSION }}' ) {
Write-Output '::warning title=Different version::Current version is ${{ env.CURRENT_VERSION }} but we trying to build ${{ env.RELEASE_VERSION }}'
git checkout tags/v${{ env.RELEASE_VERSION }} -b tmp-build
if ( $LASTEXITCODE -ne 0 ) {
Expand Down

0 comments on commit 64ba4b8

Please sign in to comment.