Send Slack Notification #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Send Slack Notification | |
on: | |
schedule: | |
- cron: '0 0 * * 1-5' # 매주 월~금 오전 1시 UTC에 실행 | |
jobs: | |
notify: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send notification to Slack | |
env: | |
DATA: | | |
{ | |
"channel": "C07LHAWLVNG", | |
"text": "<@U07L8AX9B4N><@U07L87A3WKY><@U07LC3Q1MEH><@U07LHEEU2BW><@U07LESGBQEP><@U07LMP4PY0L><@U07LHAXGYBE><@U07L87GGHJS> | |
**:calendar: 보틀즈 데일리 스크럼 :calendar:**\n\n | |
:one: - 완료된 작업 내용\n\n | |
:two: - 오늘 해야 할 작업\n\n | |
:three: - 겪고 있는 문제나 도움이 필요한 사항\n\n | |
오늘의 TMI나 아무말도 좋아:blob_aww: \n\n", | |
} | |
run: | | |
curl -X POST -H "Content-Type: application/json" \ | |
-d "$DATA" \ | |
${{ secrets.SLACK_WEBHOOK_URL }} |