Deminiko commited on
Commit
902bcd7
·
1 Parent(s): 5869dc0

ci: add large-file inline check and push to HF hub

Browse files
Files changed (1) hide show
  1. .github/workflows/sync-to-hf.yml +9 -4
.github/workflows/sync-to-hf.yml CHANGED
@@ -15,10 +15,15 @@ jobs:
15
  fetch-depth: 0
16
  lfs: true
17
 
18
- - name: Check large files
19
- uses: ActionsDesk/[email protected]
20
- with:
21
- filesizelimit: 10485760 # 10MB
 
 
 
 
 
22
 
23
  - name: Configure git
24
  run: |
 
15
  fetch-depth: 0
16
  lfs: true
17
 
18
+ - name: Check for large files (>10MB)
19
+ run: |
20
+ echo "Checking for files > 10MB in repository..."
21
+ git ls-tree -r -l --full-tree HEAD | awk '$4 >= 10485760 {print $0}' > /tmp/largefiles || true
22
+ if [ -s /tmp/largefiles ]; then
23
+ echo "ERROR: Found files larger than 10MB. List:"
24
+ cat /tmp/largefiles
25
+ exit 1
26
+ fi
27
 
28
  - name: Configure git
29
  run: |