Merge pull request #1678 from xiaoyifang/workflow/tag-check-windows

github: fix the tagname check
This commit is contained in:
xiaoyifang 2024-07-12 16:23:56 +08:00 committed by GitHub
commit 1fcc73ea5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -159,7 +159,7 @@ jobs:
${{steps.build_changelog.outputs.changelog}}
'@
$tagExist = gh api --silent "repos/:owner/:repo/git/refs/tags/${{github.ref_name}}"
$tagExist = gh api --silent "repos/:owner/:repo/git/refs/tags/${tagName}"
if (-not $?) {
if ($env:prerelease -eq "true") {
gh release create ${tagName} --target ${{github.ref_name}} --notes-file=./change_note.txt --latest=false --prerelease