-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (35 loc) · 977 Bytes
/
Copy pathformat.yml
File metadata and controls
40 lines (35 loc) · 977 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
34
35
36
37
38
39
40
name: Format data
on:
push:
branches: [ "main" ]
workflow_dispatch:
schedule:
- cron: '30 7 * * *'
permissions:
contents: write
jobs:
task:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Clone data
run: git clone https://huggingface.co/spaces/lmarena-ai/chatbot-arena-leaderboard --depth=1
- name: Run script
run: python3 main.py
- name: Push result
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
if (git diff --shortstat | grep '[0-9]'); then \
git add .
git commit -am "Update data"
git push
fi