boris commited on
Commit
bc7d169
1 Parent(s): 6b5023f

feat: split actions between PR and main

Browse files
.github/workflows/check_size.yml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [main]
6
+
7
+ # to run this workflow manually from the Actions tab
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ sync-to-hub:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Check large files
15
+ uses: ActionsDesk/lfs-warning@v2.0
16
+ with:
17
+ filesizelimit: 900000 # so we can sync to HF spaces
.github/workflows/{main.yml → sync_to_hub.yml} RENAMED
@@ -3,8 +3,6 @@ name: Sync to Hugging Face hub
3
  on:
4
  push:
5
  branches: [main]
6
- pull_request:
7
- branches: [main]
8
 
9
  # to run this workflow manually from the Actions tab
10
  workflow_dispatch:
@@ -13,13 +11,13 @@ jobs:
13
  sync-to-hub:
14
  runs-on: ubuntu-latest
15
  steps:
16
- - uses: actions/checkout@v2
17
- with:
18
- fetch-depth: 0
19
  - name: Check large files
20
  uses: ActionsDesk/lfs-warning@v2.0
21
  with:
22
  filesizelimit: 900000 # so we can sync to HF spaces
 
 
 
23
  - name: Push to hub
24
  env:
25
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
 
3
  on:
4
  push:
5
  branches: [main]
 
 
6
 
7
  # to run this workflow manually from the Actions tab
8
  workflow_dispatch:
 
11
  sync-to-hub:
12
  runs-on: ubuntu-latest
13
  steps:
 
 
 
14
  - name: Check large files
15
  uses: ActionsDesk/lfs-warning@v2.0
16
  with:
17
  filesizelimit: 900000 # so we can sync to HF spaces
18
+ - uses: actions/checkout@v2
19
+ with:
20
+ fetch-depth: 0
21
  - name: Push to hub
22
  env:
23
  HF_TOKEN: ${{ secrets.HF_TOKEN }}