File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 56
56
shell : pwsh
57
57
run : |
58
58
$ReleaseVersion = ([string]::IsNullOrWhitespace($env:INPUT_VERSION) ? $env:CURRENT_VERSION : $env:INPUT_VERSION)
59
+ if ( $ReleaseVersion.StartsWith('v') ) {
60
+ $ReleaseVersion = $ReleaseVersion.Substring(1)
61
+ }
59
62
Write-Output ('RELEASE_VERSION={0}' -f $ReleaseVersion) >> $env:GITHUB_ENV
60
63
61
64
- name : Copy Firmware Files
85
88
cd '${{ env.OFW_PATH }}'
86
89
if ( '${{ env.CURRENT_VERSION }}' -ne '${{ env.RELEASE_VERSION }}' ) {
87
90
Write-Output '::warning title=Different version::Current version is ${{ env.CURRENT_VERSION }} but we trying to build ${{ env.RELEASE_VERSION }}'
91
+
88
92
git checkout tags/v${{ env.RELEASE_VERSION }} -b tmp-build
89
-
93
+
90
94
if ( $LASTEXITCODE -ne 0 ) {
91
95
Write-Error '::error title=Cannot checkout to this version::Error during execution checkout to this tag ${{ env.RELEASE_VERSION }}'
92
96
exit 1
@@ -110,6 +114,7 @@ jobs:
110
114
111
115
if ( '${{ env.CURRENT_VERSION }}' -ne '${{ env.RELEASE_VERSION }}' ) {
112
116
Write-Output '::warning title=Different version::Current version is ${{ env.CURRENT_VERSION }} but we trying to build ${{ env.RELEASE_VERSION }}'
117
+
113
118
git checkout tags/v${{ env.RELEASE_VERSION }} -b tmp-build
114
119
115
120
if ( $LASTEXITCODE -ne 0 ) {
You can’t perform that action at this time.
0 commit comments