Solveit Reminder #17
This file contains hidden or 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: Solveit Reminder | |
| on: | |
| schedule: | |
| - cron: "0 0 * * 3" # 매주 수요일 9:00 (KST, UTC+9) | |
| workflow_dispatch: | |
| jobs: | |
| send_message: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check environment variables | |
| run: | | |
| echo "DISCORD_CHANNEL_ID_SOLVEIT=${{ secrets.DISCORD_CHANNEL_ID_SOLVEIT }}" | |
| echo "REMINDER_BOT_TOKEN=${{ secrets.REMINDER_BOT_TOKEN }}" | |
| - name: Notify PR Due Date | |
| run: | | |
| RESPONSE=$(curl -s -o /dev/null -w "%{http_code}" -X POST \ | |
| -H "Content-Type: application/json" \ | |
| -H "Authorization: Bot ${{ secrets.REMINDER_BOT_TOKEN }}" \ | |
| -d "{\"content\": \"오늘 스터디 있어요~! 오후 1시에 Solveit에서 만나요~! \"}" \ | |
| https://discord.com/api/v10/channels/${{ secrets.DISCORD_CHANNEL_ID_SOLVEIT }}/messages) | |
| echo "Response: $RESPONSE" |