Explorar o código

Improve version handling in firmware build workflow

This commit refines the version handling within the firmware build workflow. An empty string is initially assigned to the release version, then it's updated based on certain conditions. Consequently, the version input management is more accurate, securing the proper format for the release version.
DerSkythe %!s(int64=2) %!d(string=hai) anos
pai
achega
5e2d26546e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      .github/workflows/build-with-firmwware.yml

+ 2 - 0
.github/workflows/build-with-firmwware.yml

@@ -103,6 +103,8 @@ jobs:
 
           if ( [string]::IsNullOrWhitespace($env:INPUT_VERSION) ) {
             $latestTag = ((gh release view --json tagName,url -R ${{ vars.REPO_SELF }}) | ConvertFrom-Json ).tagName
+            Write-Output "::notice title=Latest tag::$latestTag"
+            
             $lastIndex = $latestTag.LastIndexOf('.')
             
             $minorValue = $latestTag.Substring($latestTag.LastIndexOf('.') + 1)