primero tag 7
Some checks failed
Deploy HTML + release / deploy (push) Failing after 21s

This commit is contained in:
Kristina 2026-05-17 23:35:34 +02:00
parent 0cc2fa76fe
commit 6a7d65b187

View file

@ -29,8 +29,16 @@ jobs:
- name: Obtener última tag
run: |
# Esto falla si no hay tags: crea al menos una antes (v0.1.0, etc.)
TAG=$(git describe --tags --abbrev=0)
set +e
TAG=$(git describe --tags --abbrev=0 2>/dev/null)
STATUS=$?
set -e
if [ $STATUS -ne 0 ] || [ -z "$TAG" ]; then
echo "No hay tags en el repositorio, no creo release"
exit 0 # o exit 1 si quieres fallar el job
fi
echo "Ultima tag encontrada: $TAG"
echo "TAG=$TAG" >> "$GITHUB_ENV"