Skip to content

Commit 1885c97

Browse files
committed
use diff
1 parent 16b642c commit 1885c97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ runs:
5757
if [ ! -f "${{ github.workspace }}/$SCHEDULE_FILE" ]; then
5858
echo "Regenerating schedule.json..."
5959
pixi run generate-schedule --locked
60-
if [ "schedule.json" != "${{ github.workspace }}/$SCHEDULE_FILE" ]; then
60+
if test "schedule.json" != "${{ github.workspace }}/$SCHEDULE_FILE" && test diff -q schedule.json "${{ github.workspace }}/$SCHEDULE_FILE"; then
6161
mv schedule.json "${{ github.workspace }}/$SCHEDULE_FILE"
6262
else
6363
echo "Source and destination are the same file – nothing to move."

0 commit comments

Comments
 (0)