Skip to content

Commit e90fed1

Browse files
committed
fix: export multiple files
1 parent 6c8d027 commit e90fed1

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/update-bundle.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
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

0 commit comments

Comments
 (0)