Skip to content

Commit 64ba4b8

Browse files
authored
Update build-with-firmwware.yml
Signed-off-by: DerSkythe <31771569+derskythe@users.noreply.github.com>
1 parent f5979d3 commit 64ba4b8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build-with-firmwware.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656
shell: pwsh
5757
run: |
5858
$ReleaseVersion = ([string]::IsNullOrWhitespace($env:INPUT_VERSION) ? $env:CURRENT_VERSION : $env:INPUT_VERSION)
59+
if ( $ReleaseVersion.StartsWith('v') ) {
60+
$ReleaseVersion = $ReleaseVersion.Substring(1)
61+
}
5962
Write-Output ('RELEASE_VERSION={0}' -f $ReleaseVersion) >> $env:GITHUB_ENV
6063
6164
- name: Copy Firmware Files
@@ -85,8 +88,9 @@ jobs:
8588
cd '${{ env.OFW_PATH }}'
8689
if ( '${{ env.CURRENT_VERSION }}' -ne '${{ env.RELEASE_VERSION }}' ) {
8790
Write-Output '::warning title=Different version::Current version is ${{ env.CURRENT_VERSION }} but we trying to build ${{ env.RELEASE_VERSION }}'
91+
8892
git checkout tags/v${{ env.RELEASE_VERSION }} -b tmp-build
89-
93+
9094
if ( $LASTEXITCODE -ne 0 ) {
9195
Write-Error '::error title=Cannot checkout to this version::Error during execution checkout to this tag ${{ env.RELEASE_VERSION }}'
9296
exit 1
@@ -110,6 +114,7 @@ jobs:
110114
111115
if ( '${{ env.CURRENT_VERSION }}' -ne '${{ env.RELEASE_VERSION }}' ) {
112116
Write-Output '::warning title=Different version::Current version is ${{ env.CURRENT_VERSION }} but we trying to build ${{ env.RELEASE_VERSION }}'
117+
113118
git checkout tags/v${{ env.RELEASE_VERSION }} -b tmp-build
114119
115120
if ( $LASTEXITCODE -ne 0 ) {

0 commit comments

Comments
 (0)