File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 1818 uses : actions/checkout@v4
1919 with :
2020 fetch-depth : 0
21- lfs : true
2221
2322 - name : Set up Git user
2423 run : |
@@ -44,14 +43,25 @@ jobs:
4443 - name : Export bundle
4544 run : |
4645 ./run.sh export crypto-ecosystems-bundle.jsonl
47- git lfs track "crypto-ecosystems-bundle.jsonl"
46+
47+ if [ -f "crypto-ecosystems-bundle.jsonl" ]; then
48+ mkdir -p export
49+ split -b 50M crypto-ecosystems-bundle.jsonl chunk_
50+
51+ for chunk in chunk_*; do
52+ uuid=$(uuidgen | tr '[:upper:]' '[:lower:]')
53+ mv "$chunk" "export/${uuid}.jsonl"
54+ done
55+
56+ rm crypto-ecosystems-bundle.jsonl
57+ fi
4858
4959 - name : Add and commit changes
5060 run : |
51- git add .gitattributes crypto-ecosystems-bundle.jsonl
61+ git add export/
5262 if git diff --staged --quiet; then
5363 echo "No changes to commit"
5464 else
55- git commit -m "Update crypto-ecosystems- bundle.jsonl "
65+ git commit -m "bot: update ` crypto-ecosystems` bundle chunks "
5666 git push origin HEAD
5767 fi
You can’t perform that action at this time.
0 commit comments