fix(ci): resolve invalid YAML formatting in Telegram notification steps
Some checks failed
CI / Lint, Unit Tests & Build (push) Failing after 46s
CI / Deploy production (on server) (push) Has been skipped

This commit is contained in:
Antigravity
2026-05-28 21:15:17 +00:00
parent 6309b652e8
commit 67e9a6e3dd
2 changed files with 12 additions and 24 deletions

View File

@@ -50,12 +50,10 @@ jobs:
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
run: |
if [ -n "$TELEGRAM_BOT_TOKEN" ] && [ -n "$TELEGRAM_CHAT_ID" ]; then
MSG=$(printf "❌ Momento CI Failed\nStep: Lint\nCommit: %s\nBranch: %s" "${{ github.sha }}" "${{ github.ref_name }}")
curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" \
-d "chat_id=${TELEGRAM_CHAT_ID}" \
-d "text=❌ Momento CI Failed
Step: Lint
Commit: ${{ github.sha }}
Branch: ${{ github.ref_name }}" \
--data-urlencode "text=${MSG}" \
-d "parse_mode=Markdown" || true
fi
@@ -69,12 +67,10 @@ Branch: ${{ github.ref_name }}" \
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
run: |
if [ -n "$TELEGRAM_BOT_TOKEN" ] && [ -n "$TELEGRAM_CHAT_ID" ]; then
MSG=$(printf "❌ Momento CI Failed\nStep: Unit Tests\nCommit: %s\nBranch: %s" "${{ github.sha }}" "${{ github.ref_name }}")
curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" \
-d "chat_id=${TELEGRAM_CHAT_ID}" \
-d "text=❌ Momento CI Failed
Step: Unit Tests
Commit: ${{ github.sha }}
Branch: ${{ github.ref_name }}" \
--data-urlencode "text=${MSG}" \
-d "parse_mode=Markdown" || true
fi
@@ -88,12 +84,10 @@ Branch: ${{ github.ref_name }}" \
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
run: |
if [ -n "$TELEGRAM_BOT_TOKEN" ] && [ -n "$TELEGRAM_CHAT_ID" ]; then
MSG=$(printf "❌ Momento CI Failed\nStep: Build\nCommit: %s\nBranch: %s" "${{ github.sha }}" "${{ github.ref_name }}")
curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" \
-d "chat_id=${TELEGRAM_CHAT_ID}" \
-d "text=❌ Momento CI Failed
Step: Build
Commit: ${{ github.sha }}
Branch: ${{ github.ref_name }}" \
--data-urlencode "text=${MSG}" \
-d "parse_mode=Markdown" || true
fi