I have a master branch and in its pipeline there's a powershell script to update another branch (for automatic sync purposes) at the end of the process:
# User and email must be set, otherwise an error occurs
Write-Host "1: Set git configs"
git config --global user.email "${env:BUILD_REQUESTEDFOREMAIL}"
git config --global user.name "${env:BUILD_REQUESTEDFOR}"
git checkout stage
git merge master
git push
There's another pipeline for the stage branch that is normally triggered if I manually push to it. But in this case (when another pipeline pushes) I don't want to trigger, because the changes only involve changing documentation files, and it's not necessary to waste time and resources triggering a new build.
My first approach was to set path filters, to exclude when the file modified is CHANGELOG.md (documentation file)
It works when I push from my computer, but it doesn't work when the push comes from the build agent machine (It's still triggering)
How can I avoid the trigger? Another approches are also welcome.
Thanks in advance


[skip ci](See developercommunity.visualstudio.com/comments/503497/view.html ) - Philippe