We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f67b24c commit 16b642cCopy full SHA for 16b642c
1 file changed
action.yaml
@@ -57,7 +57,11 @@ runs:
57
if [ ! -f "${{ github.workspace }}/$SCHEDULE_FILE" ]; then
58
echo "Regenerating schedule.json..."
59
pixi run generate-schedule --locked
60
- cp -f schedule.json "${{ github.workspace }}/$SCHEDULE_FILE"
+ 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
65
else
66
echo "Schedule file already exists at $SCHEDULE_FILE"
67
fi
0 commit comments