Regarding azure yml pipeline trigger
How to achieve below requirements I want to trigger my azure yml pipeline
- Should trigger pipeline on master branch if PR is merged to master branch
- Should trigger pipeline on master branch if git tag is added on master branch.
- Should not trigger pipeline if git tag is added on non-master branches (like develop, features branches)
- Should trigger pipeline on non-master branches if PR is merged or commit happens on these branches
How to handle this any idea, I have below trigger set as of now?
trigger:
branches:
include:
- develop
- master
- features/*
paths:
exclude:
- README.md
- azure-pipelines.yml
tags:
include:
- refs/tags/*-RELEASE