Skip to content

Commit 21bf8f2

Browse files
committed
fix: remove -s flag from zipcmp, use zipcmp only for zips
1 parent 0ad8e33 commit 21bf8f2

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/update-dumps.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,17 @@ jobs:
414414
for src in "${!files[@]}"; do
415415
dst="${files[$src]}"
416416
mkdir -p "$(dirname "$dst")"
417-
if [ ! -f "$dst" ] || ! zipcmp -s "$src" "$dst"; then
418-
mv "$src" "$dst"
419-
git add "$dst"
417+
418+
if [[ "$src" == *.zip ]]; then
419+
if [ ! -f "$dst" ] || ! zipcmp "$src" "$dst"; then
420+
mv "$src" "$dst"
421+
git add "$dst"
422+
fi
423+
else
424+
if [ ! -f "$dst" ] || ! cmp -s "$src" "$dst"; then
425+
mv "$src" "$dst"
426+
git add "$dst"
427+
fi
420428
fi
421429
done
422430
rm -rf artifacts/
@@ -432,7 +440,6 @@ jobs:
432440
433441
git checkout -b $BRANCH_NAME
434442
git commit -m "Update cache dumps to version ${{ inputs.cache_version }}"
435-
436443
git push origin $BRANCH_NAME --force
437444
438445
echo "Changes committed and pushed to $BRANCH_NAME."

0 commit comments

Comments
 (0)