Skip to content

Commit 99110c1

Browse files
committed
CI: Fix broken pipe issue with ls & head
1 parent 1f01714 commit 99110c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/deploy_printed_parts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
7z a -tzip "$OUT_DIR/$PACK_ZIP_NAME" "$WORK_DIR/$PACK_NAME"/*
5050
5151
echo " - Updating timestamp of $PACK_ZIP_NAME"
52-
NEWEST_FILE="$(find $WORK_DIR/$PACK_NAME -type f -exec ls -t1 {} + | head -1)"
52+
NEWEST_FILE="$(find $WORK_DIR/$PACK_NAME -type f -exec ls -t1 {} + | head -1 ; dd of=/dev/null)"
5353
echo " - Newest file in pack is ${NEWEST_FILE##*/}"
5454
echo " - Timestamp: $(date -r $NEWEST_FILE)"
5555
touch -r "$NEWEST_FILE" "$OUT_DIR/$PACK_ZIP_NAME"

0 commit comments

Comments
 (0)