Skip to content

Commit 8335d24

Browse files
committed
ci: Fix detect tag exists
1 parent 168f77b commit 8335d24

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/tags.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v6
19-
with:
20-
fetch-tags: true
2119
- uses: fregante/setup-git-user@v2
2220
- name: Create tag if not exists
2321
env:
@@ -28,6 +26,7 @@ jobs:
2826
echo "No version found in package.json"
2927
exit 1
3028
fi
29+
git fetch --tags
3130
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
3231
exit 0
3332
fi

0 commit comments

Comments
 (0)