Skip to content

Race Monitor

Race Monitor #218

Workflow file for this run

name: Race Monitor
on:
schedule:
- cron: '*/5 * * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: pip install beautifulsoup4 requests
- name: Run script
run: python Scripts/VerstappenNotification/verstappen.py
- name: Save state
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add Scripts/VerstappenNotification/state.txt || true
git diff --quiet && git diff --staged --quiet || (git commit -m "chore: save tracking state" && git push)