In on prem TFS 2019, I have builds that we have triggers to happen on a schedule meaning they always build at specified times during the day. What I would like to do is to not start a build if a check-in hasn't happened since the last build ran. If no check-in has happened, we really don't have a reason to build and push new code since the code hasn't changed.
By default, your pipeline does not run as scheduled if there have been no code changes since the last scheduled run.
Make sure you select Only schedule builds if the source or pipeline has changed in your Pipeline:
Or not use the always
keyword in YAML build: