From 42909320ac9825102b1189a4faf5a8aacccc6002 Mon Sep 17 00:00:00 2001 From: Xiao Yi Fang Date: Fri, 12 Jul 2024 16:17:28 +0800 Subject: [PATCH] github: fix the tagname check --- .github/workflows/release-windows-vcpkg-cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-windows-vcpkg-cmake.yml b/.github/workflows/release-windows-vcpkg-cmake.yml index f16adcbe..a26445e2 100644 --- a/.github/workflows/release-windows-vcpkg-cmake.yml +++ b/.github/workflows/release-windows-vcpkg-cmake.yml @@ -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