document inputs in readme

This commit is contained in:
softprops 2019-10-27 19:03:46 -04:00
parent ffd46aa513
commit 08b1f17ad0

View File

@ -31,6 +31,16 @@ jobs:
run: cargo test --verbose
```
## inputs
The following inputs can be provided with the `jobs.<job_id>.steps.with` yaml key.
| Name | Required | Description | Type | Default |
|--------------|:--------:|--------------------------------------------------------|-------------------------|---------|
| rust-version | ✖ | The toolchain name, such as stable, nightly, or 1.8.0 | String | stable |
| components | ✖ | The toolchain components to install | String, comma-separated | |
| targets | ✖ | The toolchain targets to add | String, comma-separated | |
For more details, check out [`action.yml`].
[`action.yml`]: https://github.com/hecrj/setup-rust-action/blob/master/action.yml