Update msbuild.yml

This commit is contained in:
ApfelTeeSaft
2024-10-08 14:10:56 +02:00
parent 5d94dc430f
commit 7ac438506f
+6 -2
View File
@@ -39,9 +39,13 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: pwsh
continue-on-error: true
run: |
$latestTag = gh release view --json tagName --jq '.tagName'
if (-not $latestTag) { $latestTag = "v1.0.0" }
try {
$latestTag = gh release view --json tagName --jq '.tagName'
} catch {
$latestTag = "v1.0.0"
}
echo "LATEST_TAG=$latestTag" | Out-File -FilePath $env:GITHUB_ENV -Append
# Set new version based on commit message keywords