Check Amazon Price #41
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: Check Amazon Price | |
| on: | |
| schedule: | |
| # Runs at 8:00 AM UTC every day. You can change this. | |
| # Use crontab.guru to easily generate schedules. | |
| - cron: '0 8 * * *' | |
| workflow_dispatch: # Allows you to run it manually from the Actions tab | |
| jobs: | |
| build: | |
| 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.10' # You can change the version if needed | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install requests beautifulsoup4 | |
| - name: Run Price Tracker Script | |
| env: | |
| SENDER_EMAIL: ${{ secrets.SENDER_EMAIL }} | |
| SENDER_PASSWORD: ${{ secrets.SENDER_PASSWORD }} | |
| RECIPIENT_EMAIL: ${{ secrets.RECIPIENT_EMAIL }} | |
| run: python price_tracker.py |