Flood Alert Check #367
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: 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 |