Load Weather Forecasts #13721
This file contains 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: Load Weather Forecasts | |
on: | |
schedule: | |
- cron: '45 * * * *' # Hourly at 45 minutes past the hour | |
workflow_dispatch: | |
jobs: | |
load-weather: | |
name: Load Weather Forecasts | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Authenticate to Google Cloud | |
uses: google-github-actions/auth@v1 | |
with: | |
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}' | |
- name: Install dependencies | |
run: pip3 install -r data/requirements.txt | |
- name: Load weather data | |
run: python3 data/load_weather.py | |
keepalive-job: | |
name: Keepalive Workflow | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gautamkrishnar/keepalive-workflow@v2 | |