Bashir Gulistani commited on
Commit
f81b4d9
·
unverified ·
1 Parent(s): ade153a

Update check-filesize.yml

Browse files
.github/workflows/check-filesize.yml CHANGED
@@ -1,11 +1,13 @@
1
  name: Check file size
2
- on: # or directly `on: [push]` to run the action on every push on any branch
 
3
  pull_request:
4
  branches: [main]
5
-
6
- # to run this workflow manually from the Actions tab
7
  workflow_dispatch:
8
 
 
 
 
9
  jobs:
10
  sync-to-hub:
11
  runs-on: ubuntu-latest
@@ -13,4 +15,4 @@ jobs:
13
  - name: Check large files
14
  uses: ActionsDesk/lfs-warning@v2.0
15
  with:
16
- filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
 
1
  name: Check file size
2
+
3
+ on:
4
  pull_request:
5
  branches: [main]
 
 
6
  workflow_dispatch:
7
 
8
+ permissions:
9
+ contents: read
10
+
11
  jobs:
12
  sync-to-hub:
13
  runs-on: ubuntu-latest
 
15
  - name: Check large files
16
  uses: ActionsDesk/lfs-warning@v2.0
17
  with:
18
+ filesizelimit: 10485760