Azure / Azure/pipelines

[Bug] Sample in README needs updating

Open
#68 1 comment 6 reactions 0 assignees View on GitHub
need-to-triage
Dominant language
TypeScript
Stars
85
Forks
99
PR merge metrics
No merged PRs in 30d

Description

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/pipelines@v1.2
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 https://github.com/3drepo/3drepo.io/issues/3475

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.