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:
|
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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user