Weather Pipeline #90
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: Weather Pipeline | |
| on: | |
| push: | |
| workflow_dispatch: | |
| schedule: | |
| # GitHub cron uses UTC. | |
| # 2:00 AM Central = 08:00 UTC when CST, 07:00 UTC when CDT. | |
| # We choose 08:00 UTC — it becomes 2 AM (winter) / 3 AM (summer). | |
| - cron: "0 8 * * *" | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.14" | |
| - name: Install dependencies | |
| run: | | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: Export Supabase credentials | |
| run: | | |
| echo "API_KEY=${{ secrets.API_KEY }}" >> $GITHUB_ENV | |
| echo "SUPABASE_URL=${{ secrets.SUPABASE_URL }}" >> $GITHUB_ENV | |
| echo "SUPABASE_SERVICE_ROLE_KEY=${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}" >> $GITHUB_ENV | |
| - name: Run Weather Pipeline | |
| env: | |
| SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | |
| API_KEY: ${{ secrets.API_KEY }} | |
| run: python main.py |