Преглед изворни кода

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 година
родитељ
комит
5e2d26546e
1 измењених фајлова са 2 додато и 0 уклоњено
  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) ) {
           if ( [string]::IsNullOrWhitespace($env:INPUT_VERSION) ) {
             $latestTag = ((gh release view --json tagName,url -R ${{ vars.REPO_SELF }}) | ConvertFrom-Json ).tagName
             $latestTag = ((gh release view --json tagName,url -R ${{ vars.REPO_SELF }}) | ConvertFrom-Json ).tagName
+            Write-Output "::notice title=Latest tag::$latestTag"
+            
             $lastIndex = $latestTag.LastIndexOf('.')
             $lastIndex = $latestTag.LastIndexOf('.')
             
             
             $minorValue = $latestTag.Substring($latestTag.LastIndexOf('.') + 1)
             $minorValue = $latestTag.Substring($latestTag.LastIndexOf('.') + 1)