This question won't have any code because I haven't found any possible way so far but not even a straight no, it's not possible.
Azure Data Factory uses adf_publish branch as the official branch on top of the master. ADF publishes the definitions of all the pipelines, triggers, linked services, etc to this adf_publish branch when on the GUI the user clicks on Publish.
I need to do this programmatically. I don't want someone to go on the ADF portal itself and click on the Publish button so that the adf_publish branch is updated correctly. I need to know if there is some powershell code (or step in Azure Devops pipeline) that allows me to do this. Thanks in advance!
UPDATE:
After Kevin's answer below I gave it a try with the suggested powershell script and seems succeeding but unfortunately it doesn't seem to do what it's supposed to do. Whenever I try to "Publish" from the ADF portal I see that it gathers the changes from the collaboration branch (Master) and tries to merge them in the Adf_Publish branch. An example is the pic below listing all the changes that will be merged.
So in theory the powershell script should do the same or that's what I am trying to achieve while instead it seems not doing anything:
Am I missing something?