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

Fix: Update substring handling in firmware build workflow

This commit corrects the extraction of the minor version value in the SubBrute application's firmware build workflow. The fix ensures the last part of the version tag is parsed correctly by excluding the delimiter from the resulting substring.
DerSkythe пре 2 година
родитељ
комит
54a98f9f15
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      .github/workflows/build-with-firmwware.yml

+ 1 - 1
.github/workflows/build-with-firmwware.yml

@@ -104,7 +104,7 @@ jobs:
             $latestTag = ((gh release view --json tagName,url -R ${{ vars.REPO_SELF }}) | ConvertFrom-Json ).tagName
             $lastIndex = $latestTag.LastIndexOf('.')
             
-            $minorValue = $latestTag.Substring($latestTag.LastIndexOf('.'))
+            $minorValue = $latestTag.Substring($latestTag.LastIndexOf('.') + 1)
             $minorValue = [Convert]::ToInt32($minorValue) + 1
             $latestTag = $latestTag.Substring(0, $lastIndex)