如何在azure管道yaml文件中引用github动作变量?



如果我想将以下变量从github动作传递到azure管道yaml文件,我如何引用它们并在azure yaml管道中使用它们?

- uses: Azure/pipelines@v1
with:
azure-devops-project-url: 'https://dev.azure.com/organization/project-name'
azure-pipeline-name: 'pipeline-name' # name of the Azure pipeline to be triggered
azure-devops-token: '${{ secrets.azureconnection }}'
azure-pipeline-variables:  '{"variable1": "value1", "variable2": "value2"}' # optional stringified json

该项目的GitHub页面有一个问题,表明v1没有正确地将变量传递给Azure pipeline。V1.2修正了这个问题。

最新更新