Skip to content

Commit c80f1ae

Browse files
authored
fix: hash files and force push
1 parent a91ee31 commit c80f1ae

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/update-bundle.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ jobs:
5050
split -C 50M crypto-ecosystems-bundle.jsonl chunk_
5151
5252
for chunk in chunk_*; do
53-
uuid=$(uuidgen | tr '[:upper:]' '[:lower:]')
54-
mv "$chunk" "export/${uuid}.jsonl"
53+
hash=$(sha256sum "$chunk" | cut -d' ' -f1 | head -c 16)
54+
mv "$chunk" "export/${hash}.jsonl"
5555
done
5656
5757
rm crypto-ecosystems-bundle.jsonl
@@ -64,6 +64,5 @@ jobs:
6464
echo "No changes to commit"
6565
else
6666
git commit -m "bot: update crypto-ecosystems bundle chunks"
67-
git pull --rebase origin HEAD || true
68-
git push origin HEAD
67+
git push origin HEAD --force-with-lease
6968
fi

0 commit comments

Comments
 (0)