Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Sample in README needs updating #68

Open
keifgwinn opened this issue Jul 28, 2022 · 1 comment · May be fixed by #93
Open

[Bug] Sample in README needs updating #68

keifgwinn opened this issue Jul 28, 2022 · 1 comment · May be fixed by #93
Labels
need-to-triage Requires investigation

Comments

@keifgwinn
Copy link
Contributor

Sample provided on the README gives an action that won't operate correctly.


- 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

however if you use 'azure-pipeline-variables' in your own action you get

Warning: Unexpected input(s) 'azure-pipeline-variables', valid inputs are ['azure-devops-project-url', 'azure-pipeline-name', 'azure-devops-token']

So sample should read

- uses: Azure/[email protected]
  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

Encountered on 3drepo/3drepo.io#3475

@keifgwinn keifgwinn added the need-to-triage Requires investigation label Jul 28, 2022
@dnegrisolli
Copy link

I pointed the same error today to the Az Pipelines teams

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-to-triage Requires investigation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants