瀏覽代碼

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) ) {
             $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)