Notify Free Games #47
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: Notify Free Games | |
| on: | |
| schedule: | |
| - cron: '0 12 * * *' # Runs daily at 12:00 UTC | |
| workflow_dispatch: # Allows manual triggering of the workflow | |
| jobs: | |
| notify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| 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 python-dotenv | |
| - name: Run Script | |
| env: | |
| SMTP_SERVER: ${{ secrets.SMTP_SERVER }} | |
| SMTP_PORT: ${{ secrets.SMTP_PORT }} | |
| EMAIL: ${{ secrets.EMAIL }} | |
| PASSWORD: ${{ secrets.PASSWORD }} | |
| TO_EMAIL: ${{ secrets.TO_EMAIL }} | |
| FROM_EMAIL: ${{ secrets.FROM_EMAIL }} # Added FROM_EMAIL here | |
| run: python check_free_games.py |