We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1885c97 commit c7acf66Copy full SHA for c7acf66
1 file changed
action.yaml
@@ -57,10 +57,10 @@ runs:
57
if [ ! -f "${{ github.workspace }}/$SCHEDULE_FILE" ]; then
58
echo "Regenerating schedule.json..."
59
pixi run generate-schedule --locked
60
- if test "schedule.json" != "${{ github.workspace }}/$SCHEDULE_FILE" && test diff -q schedule.json "${{ github.workspace }}/$SCHEDULE_FILE"; then
+ 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
63
mv schedule.json "${{ github.workspace }}/$SCHEDULE_FILE"
- else
- echo "Source and destination are the same file – nothing to move."
64
fi
65
else
66
echo "Schedule file already exists at $SCHEDULE_FILE"
0 commit comments