fix: improve tag existence check by using local tags
Some checks failed
Generate Manifest & Tag / tag (push) Failing after 3s
Some checks failed
Generate Manifest & Tag / tag (push) Failing after 3s
This commit is contained in:
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@@ -85,7 +85,8 @@ jobs:
|
||||
id: tagcheck
|
||||
run: |
|
||||
TAG="v${{ steps.meta.outputs.version }}"
|
||||
if git ls-remote --tags origin "refs/tags/$TAG" | grep -q "$TAG"; then
|
||||
git fetch --tags --force
|
||||
if git tag -l "$TAG" | grep -qx "$TAG"; then
|
||||
echo "exists=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "exists=false" >> "$GITHUB_OUTPUT"
|
||||
|
||||
Reference in New Issue
Block a user