prgrmc commited on
Commit
3572a6c
·
1 Parent(s): bfc4193

add check file size action for hugging face spaces

Browse files
.github/workflows/check-file-size.yml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ push:
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/[email protected]
16
+ with:
17
+ filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces