Hey, I just upgraded from prefect 2.0.0 to 2.0.4 and re-created my deployments.
For one of my old deployments, I manually added a schedule-Definition and renamed the file to mydeployment_old.yaml.
Then I ran prefect deployment build myflow.py:myflow --name mydeployment -t mytag -sb gcs/gcs-prefect-stprage -o mydeployment.yaml
And like magic, the schedule definition block was automatically added to mydeployment.yaml.
This is by the way awesome - but ... I don't know why this happened 😅 So, my question is I guess: How does prefect build know, which deployment-yaml settings to apply? Did it simply look in the mydeployment_old.yaml file which was in the same folder and figure "oh well, there is a schedule block in there, so I guess he'll need it in the new deployment as well"?
(To get my intention right: This feature is awesome, I'd just like to understand how exactly it works, so that I can use it as intended)