Skip to content

Commit 16b642c

Browse files
committed
try with manual if
1 parent f67b24c commit 16b642c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

action.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ runs:
5757
if [ ! -f "${{ github.workspace }}/$SCHEDULE_FILE" ]; then
5858
echo "Regenerating schedule.json..."
5959
pixi run generate-schedule --locked
60-
cp -f schedule.json "${{ github.workspace }}/$SCHEDULE_FILE"
60+
if [ "schedule.json" != "${{ github.workspace }}/$SCHEDULE_FILE" ]; then
61+
mv schedule.json "${{ github.workspace }}/$SCHEDULE_FILE"
62+
else
63+
echo "Source and destination are the same file – nothing to move."
64+
fi
6165
else
6266
echo "Schedule file already exists at $SCHEDULE_FILE"
6367
fi

0 commit comments

Comments
 (0)