Download New Rain Masks around Berlin #5201
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: Download New Rain Masks around Berlin | |
on: | |
schedule: | |
- cron: "7 */2 * * *" | |
# - cron: '0 0-21/3 * * *' | |
workflow_dispatch: | |
jobs: | |
launch: # my name | |
name: Update images with new weather data | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
- name: Install Dependencies | |
run: pip install -r requirements.txt | |
- name: Run Script and Update Images | |
run: | | |
jupyter nbconvert --to script rainviewer_api.ipynb | |
python rainviewer_api.py | |
- name: Commit and Push Changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Actions" | |
git add . | |
git commit -m "Updated images on `date` `time` with GitHub Actions" | |
git push origin main |