Download F_WX (Wildfire) climate station data #863
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 F_WX (Wildfire) climate station data | |
on: | |
# push: | |
# branches: | |
# - "main" | |
schedule: | |
# job should run at 9.01 pst which translates to 5pm UTC | |
- cron: '1 * * * *' | |
workflow_dispatch: | |
jobs: | |
download_wildfire_climate_obs: | |
defaults: | |
run: | |
shell: bash | |
name: 'Download Wildfire xml climate obs files' | |
runs-on: ubuntu-20.04 | |
environment: PROD | |
env: | |
OBJ_STORE_BUCKET: ${{ secrets.OBJ_STORE_BUCKET }} | |
OBJ_STORE_SECRET: ${{ secrets.OBJ_STORE_SECRET }} | |
OBJ_STORE_USER: ${{ secrets.OBJ_STORE_USER }} | |
OBJ_STORE_HOST: ${{ vars.OBJ_STORE_HOST }} | |
steps: | |
- uses: actions/checkout@v3 | |
id: checkout | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- id: install_dependencies | |
name: install python dependencies | |
shell: bash | |
run: | | |
pip install --upgrade pip | |
pip install -r scripts/python/requirements.txt | |
- id: debug | |
name: debug and list files | |
shell: bash | |
run: | | |
ls -la | |
- id: download_FWX | |
name: download wildfire data and upload to s3 | |
shell: bash | |
run: | | |
python scripts/python/main_fwx.py |