File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff 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."
You can’t perform that action at this time.
0 commit comments