fix: CI - git fetch --unshallow antes del push de bump
All checks were successful
Build & Deploy Farolero / Análisis de código (push) Successful in 10s
Build & Deploy Farolero / Build APK + AAB release (push) Successful in 1m19s

This commit is contained in:
ShanaiaBot
2026-04-15 02:28:24 +02:00
parent eb2662f561
commit 42a3c57a73

View File

@@ -29,10 +29,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Bump versión patch + commit
- name: Fetch completo + Bump versión patch + commit
run: |
git config user.name "ShanaiaBot"
git config user.email "shanaia@freetimelab.es"
# Fetch completo para tener todo el historial y poder push
git fetch --unshallow origin main
CURRENT=$(grep '^version:' pubspec.yaml | awk '{print $2}')
SEMVER=$(echo $CURRENT | cut -d'+' -f1)
BUILD=$(echo $CURRENT | cut -d'+' -f2)
@@ -46,7 +48,6 @@ jobs:
git add pubspec.yaml
git commit -m "chore: bump version to ${NEW_VERSION} [ci skip]"
git push origin main
echo "NEW_SEMVER=${MAJOR}.${MINOR}.${NEW_PATCH}" >> $GITHUB_ENV
- name: Extraer versión
id: version