Fix: GitHub Actions workflow syntax error - secrets cannot be used in if condition directly
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user