init commit

This commit is contained in:
2026-01-26 15:08:24 -06:00
commit 67225a725a
33 changed files with 3350 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
name: Weather Alerts
on:
schedule:
- cron: '0 * * * *' # Every hour at :00
workflow_dispatch: {} # Manual trigger
jobs:
check-weather:
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.11'
cache: 'pip'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run weather alerts
env:
VISUALCROSSING_API_KEY: ${{ secrets.VISUALCROSSING_API_KEY }}
NTFY_ACCESS_TOKEN: ${{ secrets.NTFY_ACCESS_TOKEN }}
run: python -m app.main
- name: Commit state changes
run: |
git config user.name "Gitea Actions"
git config user.email "actions@gitea.local"
git add data/state.json
git diff --staged --quiet || git commit -m "chore: update weather alert state [skip ci]"
git push