Azure / pipelines

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

[Question] Multi line Pipeline Variables #65

Closed obeyda closed 1 year ago

obeyda commented 2 years ago

when trying to split the pipeline variables on multiple lines I am getting this: Could not cast or convert from System.String to System.Collections.Generic.IDictionary`2[System.String,System.String].

  - name: Azure Pipelines Action
    uses: Azure/pipelines@v1.2
    with:
      ...
      azure-pipeline-variables: >
        '{
         "v1": "1",
         "v2": "2", 
         "v3": true 
          }'
asilverman commented 1 year ago

@obeyda I think that to get this to work you want to specify it as follows (without single quotes):

 - name: Azure Pipelines Action
    uses: Azure/pipelines@v1.2
    with:
      ...
      azure-pipeline-variables: >
        {
         "v1": "1",
         "v2": "2", 
         "v3": true 
         }

notice how the single quotes are removed

obeyda commented 1 year ago

That solves it for me, Thanks