Skip to content

Birthday Discord Bot #112

Birthday Discord Bot

Birthday Discord Bot #112

name: Birthday Discord Bot
on:
schedule:
# Always runs before midnight Melbourne time (AEST/AEDT):
# - 13:00 UTC = 23:00 (midnight) in AEST (winter)
# - 13:00 UTC = 00:00 in AEDT (summer)
# This ensures the workflow runs before midnight and allows code to decide whether to send notifications based on the current date in Melbourne.
- cron: '0 13 * * *'
workflow_dispatch:
jobs:
run-birthday-bot:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run birthday bot
env:
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
DATABASE_ID: ${{ secrets.DATABASE_ID }}
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
HR_DISCORD_ID: ${{ secrets.HR_DISCORD_ID }}
run: python main.py