Azure / actions-workflow-samples

Help developers to easily get started with GitHub Action workflows to deploy to Azure
https://github.com/Azure/actions
MIT License
448 stars 624 forks source link

Run Devops with variables #95

Closed pmmluis closed 2 years ago

pmmluis commented 2 years ago

Hi,

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:
 - name: DevOps release trigger
   if: github.event_name == 'push'
   uses: Azure/pipelines@v1
   with:
    azure-devops-project-url: 'https://dev.azure.com/orgnization/project'
    azure-pipeline-name: 'Pipeline' # name of the Azure pipeline to be triggered
    azure-devops-token: '${{ secrets.AZURE_DEVOPS_TOKEN }}'
    azure-pipeline-variables: '{"Branch": "testbranch", "App.Name": "apptest"}' # optional stringified json

I can't get the variable values on the pipeline.

pmmluis commented 2 years ago

Got it working, it needs to point to version 1.2