Flight Deal Finder #400
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: Flight Deal Finder | |
| env: | |
| SENDER_EMAIL: ${{secrets.SENDER_EMAIL}} | |
| SENDER_EMAIL_PASS: ${{secrets.SENDER_EMAIL_PASSWORD}} | |
| SERP_API_KEY: ${{secrets.SERP_API_KEY}} | |
| SHEETS_URL_FLIGHT_DEAL: ${{secrets.SHEETS_URL_FLIGHT_DEAL}} | |
| SHEETS_FLIGHT_DEAL_DELETE_URL: ${{secrets.SHEETS_FLIGHT_DEAL_DELETE_URL}} | |
| on: | |
| # The Cron Schedule | |
| schedule: | |
| - cron: "0 */6 * * *" | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Run script | |
| run: python 'Intermediate/Day 39 & 40 - Flight Deal Alert System/main.py' |