Repository navigation
Race Monitor #218
This file contains hidden or 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: 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) |