MaxHuber888 commited on
Commit
f8041e6
·
unverified ·
1 Parent(s): df1c1c5

Update workflow

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +4 -6
.github/workflows/main.yml CHANGED
@@ -1,33 +1,31 @@
1
  name: Check file size and Sync to Hugging Face hub
2
-
3
  on:
4
  push:
5
  branches: [main]
6
-
7
  pull_request:
8
  branches: [main]
9
-
10
  workflow_dispatch:
11
 
 
 
 
12
  jobs:
13
  check-file-size:
14
  runs-on: ubuntu-latest
15
  steps:
 
16
  - name: Check large files
17
  uses: ActionsDesk/lfs-warning@v2.0
18
  with:
19
  filesizelimit: 10485760 # 10MB
20
-
21
  sync-to-hub:
22
  needs: check-file-size
23
  runs-on: ubuntu-latest
24
-
25
  steps:
26
  - uses: actions/checkout@v3
27
  with:
28
  fetch-depth: 0
29
  lfs: true
30
-
31
  - name: Push to hub
32
  env:
33
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
 
1
  name: Check file size and Sync to Hugging Face hub
 
2
  on:
3
  push:
4
  branches: [main]
 
5
  pull_request:
6
  branches: [main]
 
7
  workflow_dispatch:
8
 
9
+ permissions:
10
+ contents: read
11
+
12
  jobs:
13
  check-file-size:
14
  runs-on: ubuntu-latest
15
  steps:
16
+ - uses: actions/checkout@v3
17
  - name: Check large files
18
  uses: ActionsDesk/lfs-warning@v2.0
19
  with:
20
  filesizelimit: 10485760 # 10MB
 
21
  sync-to-hub:
22
  needs: check-file-size
23
  runs-on: ubuntu-latest
 
24
  steps:
25
  - uses: actions/checkout@v3
26
  with:
27
  fetch-depth: 0
28
  lfs: true
 
29
  - name: Push to hub
30
  env:
31
  HF_TOKEN: ${{ secrets.HF_TOKEN }}