Skip to content

Commit 7724dd5

Browse files
committed
Update workflows-notify.yaml
1 parent e45ffaf commit 7724dd5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/workflows-notify.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Notify failed runs
1515
env:
1616
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
17-
TELEGRAM_CHAT_ID: 226855156,-1002194145687
17+
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
1818
WORKFLOWS: |
1919
DocSpace-buildtools|build_packages.yml|Build packages
2020
DocSpace-buildtools|ci-oci-docker-install.yml|Install OneClickInstall Docker
@@ -49,8 +49,7 @@ jobs:
4949
IFS=',' read -ra CHAT_IDS <<< "$TELEGRAM_CHAT_ID"
5050
for chat_id in "${CHAT_IDS[@]}"; do
5151
curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" \
52-
-H "Content-Type: application/json" \
53-
-d "{\"chat_id\": ${chat_id}, \"text\": \"$RESULT\", \"parse_mode\": \"Markdown\", \"disable_web_page_preview\": true}"
52+
-H "Content-Type: application/json" -d "{\"chat_id\": ${chat_id}, \"text\": \"$RESULT\", \"parse_mode\": \"Markdown\", \"disable_web_page_preview\": true}"
5453
done
5554
fi
5655

0 commit comments

Comments
 (0)