In Azure Devops we had nightly builds via pipelines and there was a checkbox to say "only run this if code has changed"
Now we have to use bitbucket, and we use the cron job pipeline trigger feature, but it runs every night even if there is no need to?