Spaces:
Sleeping
Sleeping
Deminiko
commited on
Commit
·
902bcd7
1
Parent(s):
5869dc0
ci: add large-file inline check and push to HF hub
Browse files
.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 |
-
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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: |
|