-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 879 Bytes
/
Copy pathdaily-update.yml
File metadata and controls
33 lines (30 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Daily Benchmark Update
on:
schedule:
- cron: '45 9 * * *' # 9:45 AM UTC daily
workflow_dispatch:
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: pip install matplotlib numpy
- name: Run daily update
run: python scripts/daily_update.py
- name: Commit if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -A
if ! git diff --cached --quiet; then
git commit -m "daily: update calibration benchmark results"
git push
else
echo "No changes to commit"
fi