We have a pipeline that generates changelogs, and we would like to execute it in a DevOps Build validation once a PR is created with the target main
.
This does not really work since once the pipeline runs, it creates commit and restarts the build validation pipeline again.
What are the best practices for that? Is it possible to find a way to automate the changelog generation?