From bf4959e913a704863adc6ac6bce70100ff192381 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Feb 2026 23:36:13 +0000 Subject: [PATCH] fix: enable Telegram channel in deploy workflow when token is provided The deployment was setting the bot token but not enabling the Telegram channel, causing the bot to never initialize even with valid credentials. https://claude.ai/code/session_019vXaqxGmkdCjM8m3jp6rYj --- .github/workflows/deploy-hostinger.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-hostinger.yml b/.github/workflows/deploy-hostinger.yml index a32f77450..62deb9611 100644 --- a/.github/workflows/deploy-hostinger.yml +++ b/.github/workflows/deploy-hostinger.yml @@ -82,11 +82,16 @@ jobs: # Update .env with secrets (keep existing values, only override if provided) ENV_FILE="/opt/picoclaw/config/.env" - # Telegram Bot Token + # Telegram Bot Token + Enable if [ -n "${{ secrets.PICOCLAW_TELEGRAM_BOT_TOKEN }}" ]; then grep -q "PICOCLAW_CHANNELS_TELEGRAM_TOKEN" "$ENV_FILE" && \ sed -i "s|^PICOCLAW_CHANNELS_TELEGRAM_TOKEN=.*|PICOCLAW_CHANNELS_TELEGRAM_TOKEN=${{ secrets.PICOCLAW_TELEGRAM_BOT_TOKEN }}|" "$ENV_FILE" || \ echo "PICOCLAW_CHANNELS_TELEGRAM_TOKEN=${{ secrets.PICOCLAW_TELEGRAM_BOT_TOKEN }}" >> "$ENV_FILE" + + # Enable Telegram channel when token is provided + grep -q "PICOCLAW_CHANNELS_TELEGRAM_ENABLED" "$ENV_FILE" && \ + sed -i "s|^PICOCLAW_CHANNELS_TELEGRAM_ENABLED=.*|PICOCLAW_CHANNELS_TELEGRAM_ENABLED=true|" "$ENV_FILE" || \ + echo "PICOCLAW_CHANNELS_TELEGRAM_ENABLED=true" >> "$ENV_FILE" fi # Anthropic API Key