Przeglądaj źródła

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 2 lat temu
rodzic
commit
5e2d26546e
1 zmienionych plików z 2 dodań i 0 usunięć
  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)