From aa1dfe0e4bce4b5967ddff3f85f2e139baa2a3d6 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 3 Jul 2026 16:25:35 +0800 Subject: [PATCH] Fix: GitHub Actions workflow syntax error - secrets cannot be used in if condition directly --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c29deda..5d89093 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -402,7 +402,9 @@ jobs: steps: - name: Send Telegram Notification uses: appleboy/telegram-action@master - if: ${{ secrets.TELEGRAM_BOT_TOKEN != '' }} + if: ${{ env.TELEGRAM_BOT_TOKEN != '' }} + env: + TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} with: to: ${{ secrets.TELEGRAM_CHAT_ID }} token: ${{ secrets.TELEGRAM_BOT_TOKEN }}