Mattermost 웹훅 URL 설정 확인 로직 추가
All checks were successful
Run Report Table / run-script (push) Successful in 7s
All checks were successful
Run Report Table / run-script (push) Successful in 7s
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
name: Run Report Table
|
name: Run Report Table
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "11 4 * * *"
|
- cron: "18 4 * * *"
|
||||||
jobs:
|
jobs:
|
||||||
run-script:
|
run-script:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ def post_mattermost(webhook: str, lines: List[str]) -> None:
|
|||||||
"""
|
"""
|
||||||
Mattermost Webhook으로 메시지 전송.
|
Mattermost Webhook으로 메시지 전송.
|
||||||
"""
|
"""
|
||||||
|
if not webhook:
|
||||||
|
logger.error("[MATTERMOST ERROR] Webhook URL is not configured.")
|
||||||
|
return
|
||||||
|
|
||||||
payload = {
|
payload = {
|
||||||
"username": "Grafana Reporter",
|
"username": "Grafana Reporter",
|
||||||
"icon_url": "https://grafana.com/static/assets/img/fav32.png",
|
"icon_url": "https://grafana.com/static/assets/img/fav32.png",
|
||||||
|
|||||||
Reference in New Issue
Block a user