fix(ci): remove broken --unshallow (clone is full) and fix Telegram notify syntax
This commit is contained in:
@@ -46,12 +46,10 @@ jobs:
|
|||||||
which flutter
|
which flutter
|
||||||
flutter --version
|
flutter --version
|
||||||
|
|
||||||
- name: Fetch completo + Bump versión patch + commit
|
- name: Bump versión patch + commit
|
||||||
run: |
|
run: |
|
||||||
git config user.name "ShanaiaBot"
|
git config user.name "ShanaiaBot"
|
||||||
git config user.email "shanaia@freetimelab.es"
|
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}')
|
CURRENT=$(grep '^version:' pubspec.yaml | awk '{print $2}')
|
||||||
SEMVER=$(echo $CURRENT | cut -d'+' -f1)
|
SEMVER=$(echo $CURRENT | cut -d'+' -f1)
|
||||||
BUILD=$(echo $CURRENT | cut -d'+' -f2)
|
BUILD=$(echo $CURRENT | cut -d'+' -f2)
|
||||||
@@ -92,7 +90,7 @@ jobs:
|
|||||||
APK_NOMBRE="farolero-v${VERSION}.apk"
|
APK_NOMBRE="farolero-v${VERSION}.apk"
|
||||||
AAB_NOMBRE="farolero-v${VERSION}.aab"
|
AAB_NOMBRE="farolero-v${VERSION}.aab"
|
||||||
DESTINO="/opt/ftl-builds/builds/farolero/v${VERSION}"
|
DESTINO="/opt/ftl-builds/builds/farolero/v${VERSION}"
|
||||||
SSH_KEY="/Users…5519"
|
SSH_KEY="***"
|
||||||
|
|
||||||
ssh -i "$SSH_KEY" -o StrictHostKeyChecking=no ShanaiaBot@192.168.0.33 "mkdir -p ${DESTINO}"
|
ssh -i "$SSH_KEY" -o StrictHostKeyChecking=no ShanaiaBot@192.168.0.33 "mkdir -p ${DESTINO}"
|
||||||
scp -i "$SSH_KEY" -o StrictHostKeyChecking=no \
|
scp -i "$SSH_KEY" -o StrictHostKeyChecking=no \
|
||||||
@@ -109,7 +107,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
VERSION="${{ steps.version.outputs.version }}"
|
VERSION="${{ steps.version.outputs.version }}"
|
||||||
COMMIT="${{ steps.version.outputs.commit }}"
|
COMMIT="${{ steps.version.outputs.commit }}"
|
||||||
BOT_TOKEN=*** -extract 'EnvironmentVariables:TELEGRAM_BOT_TOKEN' raw /Users/freetlab/Library/LaunchAgents/ai.openclaw.gateway.plist 2>/dev/null || echo "")
|
BOT_TOKEN=$(plutil -extract EnvironmentVariables:TELEGRAM_BOT_TOKEN raw /Users/freetlab/Library/LaunchAgents/ai.openclaw.gateway.plist 2>/dev/null || echo "")
|
||||||
if [ -z "$BOT_TOKEN" ]; then exit 0; fi
|
if [ -z "$BOT_TOKEN" ]; then exit 0; fi
|
||||||
if [ "${{ job.status }}" = "success" ]; then
|
if [ "${{ job.status }}" = "success" ]; then
|
||||||
MSG="✅ *Farolero* v${VERSION} build OK · ${COMMIT}%0AAPK + AAB en builds.freetimelab.es"
|
MSG="✅ *Farolero* v${VERSION} build OK · ${COMMIT}%0AAPK + AAB en builds.freetimelab.es"
|
||||||
|
|||||||
Reference in New Issue
Block a user