first init

This commit is contained in:
2026-08-05 11:55:56 +08:00 Unverified
commit ec0afcfbe2
3 changed files with 90 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
name: CET Monitor
on:
schedule:
- cron: "17 * * * *"
workflow_dispatch:
jobs:
monitor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -r requirements.txt
- name: Run
env:
PUSH_TOKEN: ${{ secrets.PUSH_TOKEN }}
run: python main.py
- name: Save 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