Skip to content

Discord DailyScrum alarm #12

Discord DailyScrum alarm

Discord DailyScrum alarm #12

Workflow file for this run

name: Discord DailyScrum alarm
on:
schedule:
- cron: "10 23 * * *"
workflow_dispatch: # 수동 실행 추가
jobs:
daily-scrum:
runs-on: ubuntu-latest
steps:
- name: Set timezone to KST
run: sudo timedatectl set-timezone Asia/Seoul
- name: Print current time (KST)
run: date
- name: Check if today is a weekday
id: check_weekday
run: |
day=$(date +%u)
if [ "$day" -ge 6 ]; then
echo "Weekend detected."
echo "::set-output name=weekend::true"
exit 0
else
echo "::set-output name=weekend::false"
fi
- name: Discord Webhook Action
if: steps.check_weekday.outputs.weekend == 'false'
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
content: |
## ⏰ 데일리 스크럼 ⏰
안녕하세요, 오렌지 폭주족! 🍊
오늘도 활기차게 하루를 시작해 봅시다!!
데일리 스크럼을 잊지 마시고, **오전 10시 전까지** 스레드에 작성 부탁드립니다! 📝
모두의 멋진 하루를 응원합니다! 💪
🗓 **Jira 타임라인**: [링크](https://hesushim.atlassian.net/jira/software/projects/DDD/boards/3/timeline)