Azure / pipelines

Enable GitHub developers to trigger Azure Pipelines from a GitHub Actions workflow
MIT License
73 stars 83 forks source link

Added template parameters #63

Open jacopocarlini opened 2 years ago

jacopocarlini commented 2 years ago

SUMMARY Add template parameters to the task

DETAILS

Allowing the user to specify the template parameters of the pipeline.

example of usage:

- 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.AZURE_DEVOPS_TOKEN }}'
    azure-pipeline-variables:  '{"variable1": "value1", "variable2": "value2"}' # optional stringified json
    azure-template-parameters: '{"variable1": "value1", "variable2": "value2"}' # optional stringified json
ghost commented 2 years ago

CLA assistant check
All CLA requirements met.

jessetan commented 1 year ago

Is there any progress on this PR? It would be great to be able to pass pipeline parameters in the action

danielkimuipath commented 10 months ago

Is there any update for this?

jacopocarlini commented 9 months ago

at the moment you can use my repository:

- name: Azure Pipelines Action - Jversion
  uses: jacopocarlini/azure-pipelines@v1.4
  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.AZURE_DEVOPS_TOKEN }}'
    azure-pipeline-variables:  '{"variable1": "value1", "variable2": "value2"}' # optional stringified json
    azure-template-parameters: '{"variable1": "value1", "variable2": "value2"}' 
priscofarina commented 2 months ago

Hi guys, when this feature will be released? As far as I got the possibility to pass parameters should be already available in the release v1.2 but I still see problems while using it.

Tks

jacopocarlini commented 1 month ago

Hi @priscofarina, there isn't the official support for this feature at the moment. You can use my action (v1.4) https://github.com/Azure/pipelines/pull/63#issuecomment-1740555049