-
Notifications
You must be signed in to change notification settings - Fork 258
36 lines (34 loc) · 1.01 KB
/
update_spaces.yml
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
name: Update Hub repositories
on:
push:
branches:
- main
jobs:
update-hub-repositories:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: Set up default Git config
run: |
git config --global user.name evaluate-bot
git config --global user.email leandro@huggingface.co
- name: Install dependencies
working-directory: ./.github/hub
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Update Hub repositories
working-directory: ./.github/hub
run: |
export HF_TOKEN=${{ secrets.HF_HUB_TOKEN }}
export EVALUATE_LIB_PATH=$GITHUB_WORKSPACE
export GIT_HASH=$GITHUB_SHA
export GIT_LFS_SKIP_SMUDGE=1
python push_evaluations_to_hub.py