Skip to content

Commit 1c5d55b

Browse files
authored
Update go-build.yaml
1 parent a200ab9 commit 1c5d55b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/go-build.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ jobs:
6767
run: |
6868
git config --local user.name "github-actions"
6969
git config --local user.email "github-actions@users.noreply.github.com"
70-
if git rev-parse "v${VERSION}" >/dev/null 2>&1; then
70+
git fetch --tags --quiet
71+
if git rev-parse "refs/tags/v${VERSION}" >/dev/null 2>&1; then
7172
echo "Tag v${VERSION} already exists"
7273
else
7374
git tag -a "v${VERSION}" -m "v${VERSION}"

0 commit comments

Comments
 (0)