Skip to content

Commit be05fe4

Browse files
authored
Merge pull request #23 from joagonzalez/feature/versioning
fix remote tag checking master branch
2 parents 217423b + b6b9859 commit be05fe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
git config user.email "[email protected]"
138138
139139
# Crear tag si no existe aún
140-
if git rev-parse "$VERSION" >/dev/null 2>&1; then
140+
if git ls-remote --tags origin | grep -q "refs/tags/$VERSION$"; then
141141
echo "⚠️ Tag $VERSION already exists. Skipping tag creation."
142142
else
143143
git tag "$VERSION"

0 commit comments

Comments
 (0)