Skip to content

Flood Alert Check

Flood Alert Check #353

Workflow file for this run

name: Flood Alert Check
on:
schedule:
- cron: "0 */4 * * *"
workflow_dispatch:
jobs:
check-flood-alert:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Run Python script
run: |
pip install -r requirements.txt
python script.py
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
git add stored_alerts.json
git commit -m "Update stored_alerts.json" || echo "No changes to commit"
git push