Azure / pipelines

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

[Question] How can I pass variables to the Azure Devops Pipeline #56

Closed pmmluis closed 2 years ago

pmmluis commented 2 years ago

Hi,

I'm using this action and I'm able to trigger the DevOps pipeline, but I can't seem to get the variables working. Using it like so:

runs-on: ubuntu-20.04 steps:

I was expecting to pass the variables to the Azure DevOps pipeline, but nothing happens. The variable exists on the DevOps pipeline but isn't updated when the release happens.

mychalhackman commented 2 years ago

It looks like v1.2 has added support for the variables and the v1 tag is not pointed to latest. The docs currently are a bit misleading. When running on v1 a warning is thrown for the unexpected input: Unexpected input(s) 'azure-pipeline-variables', valid inputs are ['azure-devops-project-url', 'azure-pipeline-name', 'azure-devops-token']

pmmluis commented 2 years ago

It looks like v1.2 has added support for the variables and the v1 tag is not pointed to latest. The docs currently are a bit misleading. When running on v1 a warning is thrown for the unexpected input: Unexpected input(s) 'azure-pipeline-variables', valid inputs are ['azure-devops-project-url', 'azure-pipeline-name', 'azure-devops-token']

That solved it for me. Thanks for the help.

saivamsibodavulaTR commented 11 months ago

I am having trouble in passing variables from workflow to azure pipeline. not getting values names.

Need Help on this