Fix: GitHub Actions workflow syntax error - secrets cannot be used in if condition directly

This commit is contained in:
2026-07-03 16:25:35 +08:00
parent d0b07f42de
commit aa1dfe0e4b
+3 -1
View File
@@ -402,7 +402,9 @@ jobs:
steps: steps:
- name: Send Telegram Notification - name: Send Telegram Notification
uses: appleboy/telegram-action@master uses: appleboy/telegram-action@master
if: ${{ secrets.TELEGRAM_BOT_TOKEN != '' }} if: ${{ env.TELEGRAM_BOT_TOKEN != '' }}
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
with: with:
to: ${{ secrets.TELEGRAM_CHAT_ID }} to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }} token: ${{ secrets.TELEGRAM_BOT_TOKEN }}