Skip to content

docs: cabin/hatch/Twister README - the hatch must be maintained #9

docs: cabin/hatch/Twister README - the hatch must be maintained

docs: cabin/hatch/Twister README - the hatch must be maintained #9

Workflow file for this run

name: CASCADIA-WX - Daily Mountain Weather Analysis
on:
push:
branches: [ main ]
schedule:
- cron: '0 15 * * *' # 15:00 UTC = 8:00 AM Pacific (after SNOTEL updates)
workflow_dispatch:
permissions:
contents: write
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install GFortran
run: sudo apt-get install -y gfortran
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Fetch live SNOTEL + valley weather data
run: |
echo "Fetching live NRCS SNOTEL data..."
python3 fetch_wx.py
- name: Show fetched SNOTEL data
run: head -5 snotel_data.csv
- name: Compile CASCADIA-WX.f90
run: gfortran -O2 -o cascadia-wx CASCADIA-WX.f90 -lm
- name: Run CASCADIA-WX analysis
run: ./cascadia-wx
- name: Show report
run: cat cascadia-wx-report.txt
- name: Commit updated data and report
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add snotel_data.csv valley_data.csv \
cascadia-wx-report.txt analysis.csv
git diff --staged --quiet || git commit -m \
"data: daily wx analysis $(date -u '+%Y-%m-%d') [skip ci]"
git push