39 lines
762 B
YAML
39 lines
762 B
YAML
|
|
name: CET Monitor
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "17 * * * *"
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
jobs:
|
|
monitor:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Install
|
|
run: pip install -r requirements.txt
|
|
|
|
- name: Run monitor
|
|
env:
|
|
PUSH_TOKEN: ${{ secrets.PUSH_TOKEN }}
|
|
run: python main.py
|
|
|
|
- name: Commit state
|
|
run: |
|
|
git config user.name "gitea-actions"
|
|
git config user.email "actions@localhost"
|
|
git add data/state.json
|
|
git diff --cached --quiet || git commit -m "update cet state"
|
|
git push
|