Daily Deadline Reminder #55
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: Daily Deadline Reminder | |
| on: | |
| schedule: | |
| - cron: '30 3 * * *' # 3:30 AM UTC = 9:00 AM IST | |
| workflow_dispatch: # allow manual trigger from GitHub UI for testing | |
| jobs: | |
| remind: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: pip install psycopg2-binary rich | |
| - name: Run reminder script | |
| env: | |
| DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
| REMINDER_EMAIL_FROM: ${{ secrets.REMINDER_EMAIL_FROM }} | |
| REMINDER_EMAIL_PASSWORD: ${{ secrets.REMINDER_EMAIL_PASSWORD }} | |
| REMINDER_EMAIL_TO: ${{ secrets.REMINDER_EMAIL_TO }} | |
| run: python remind.py |