I got an Azure yaml pipeline which defines a parameter and is being triggered via a change in 2 different paths in the repo:
trigger:
branches:
include:
- master
paths:
include:
- "/SomePath1/*"
- "/SomePath2/*"
parameters:
- name: SomeFlag
default: value1
type: string
Is there a way for me to tell the pipeline that if it was triggered from "/SomePath1/" then the parameter gets a value of "value1" and if it was triggered from "/SomePath2/" then it will get the "Value2" (without the need to run the pipeline manually of course) ?