Need some inputs on how can we trigger release pipeline to copy the respective .json file to Azure storage account based on the commit done to specific folder in master branch.
Currently, when there is change in API1- .json file, all the .json will be copied to the storage account which is done via Azure Copy File task.
master
--- Applications
--- API1(folder1)
sample.json
--- API2(folder2)
sample.json
--- API3(folder3)
sample.json
NOTE: Above is not a git repo, its a normal repo to store API files, Im not using build pipeline to get the artifacts, in release pipeline im referring to the the Azure git repo directly.
How can I only copy the API1 .json file if there is commit to the respective folder(API1) and copy to specific storage account?
Can we achieve this using single Azure copy task or should we have multiple Azure copy task created?