Skip to content

Commit c7acf66

Browse files
committed
better diff
1 parent 1885c97 commit c7acf66

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ runs:
5757
if [ ! -f "${{ github.workspace }}/$SCHEDULE_FILE" ]; then
5858
echo "Regenerating schedule.json..."
5959
pixi run generate-schedule --locked
60-
if test "schedule.json" != "${{ github.workspace }}/$SCHEDULE_FILE" && test diff -q schedule.json "${{ github.workspace }}/$SCHEDULE_FILE"; then
60+
if diff -q schedule.json "${{ github.workspace }}/$SCHEDULE_FILE" >/dev/null; then
61+
echo "Source and destination have identical contents – nothing to move."
62+
else
6163
mv schedule.json "${{ github.workspace }}/$SCHEDULE_FILE"
62-
else
63-
echo "Source and destination are the same file – nothing to move."
6464
fi
6565
else
6666
echo "Schedule file already exists at $SCHEDULE_FILE"

0 commit comments

Comments
 (0)