Hi DH
I wanted to clarity if you mentioned refs/head/main or refs/heads/main. As I believe refs/head/main is incorrect.
In the YAML file, ensure that the trigger section correctly mapped to refs/heads/main, not just main
trigger:
branches:
include:
- refs/heads/main
Also try to remove & re-add the branch control and test it again
In branch control you can allow combination of branches by comma: refs/heads/main, refs/heads/<another branch>
Additional References:
Hope this helps!
Please Let me know if you have any queries.