LeetCode Daily Mailer #60
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: LeetCode Daily Mailer | |
| on: | |
| schedule: | |
| - cron: '30 2 * * *' # Runs daily at 8:00 AM IST (2:30 AM UTC) | |
| workflow_dispatch: # Allow manual trigger from GitHub UI | |
| jobs: | |
| send-mail: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: pip install requests | |
| - name: Run script | |
| env: | |
| SENDER_EMAIL: ${{ secrets.SENDER_EMAIL }} | |
| RECEIVER_EMAIL: ${{ secrets.RECEIVER_EMAIL }} | |
| EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }} | |
| run: python leetcode_daily_mailer.py |