mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-22 16:09:33 +01:00
README improvements
This commit is contained in:
parent
edc4f7e32f
commit
cee821a331
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
@ -19,15 +19,15 @@ Every argument is optional.
|
||||||
|
|
||||||
| Input | Description | Default |
|
| Input | Description | Default |
|
||||||
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------|---------|
|
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------|---------|
|
||||||
| crate-name | The crate whose API to check for semver | |
|
| crate-name | The crate whose API to check for semver (needed only in multi-crate workspaces). | |
|
||||||
| crate-target | By default, check the library target of the crate. To check a different target (e.g. a binary target), set this to `--bin <NAME>` | `--lib` |
|
| crate-target | (Deprecated) By default, check the library target of the crate. To check a different target (e.g. a binary target), set this to `--bin <NAME>`. Will be removed in future versions, as bin targets do not have library-like API to check. | `--lib` |
|
||||||
| version-tag-prefix | The prefix to use for the git tag for a version; the default "v" creates tags like "v1.0.0" | `v` |
|
| version-tag-prefix | The prefix to use for the git tag for a version; the default "v" creates tags like "v1.0.0". | `v` |
|
||||||
|
|
||||||
# Scenarios
|
# Scenarios
|
||||||
|
|
||||||
- [Use with a different version tag format](#use-with-a-different-version-tag-format)
|
- [Use with a different version tag format](#use-with-a-different-version-tag-format)
|
||||||
- [Use in workspaces with more than one crate](#use-in-workspaces-with-more-than-one-crate)
|
- [Use in workspaces with more than one crate](#use-in-workspaces-with-more-than-one-crate)
|
||||||
- [Use with binary crates or crates with more than one target](#use-with-binary-crates-or-crates-with-more-than-one-target)
|
- [(Deprecated) Use with binary crates or crates with more than one target](#deprecated-use-with-binary-crates-or-crates-with-more-than-one-target)
|
||||||
|
|
||||||
## Use with a different version tag format
|
## Use with a different version tag format
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ For example, this will check `my-crate` whose releases are tagged as `my-crate-v
|
||||||
run: # your `cargo publish` code here
|
run: # your `cargo publish` code here
|
||||||
```
|
```
|
||||||
|
|
||||||
## Use with binary crates or crates with more than one target
|
## (Deprecated) Use with binary crates or crates with more than one target
|
||||||
|
|
||||||
To check a different (non-library) target in a crate, use the `crate-target` setting:
|
To check a different (non-library) target in a crate, use the `crate-target` setting:
|
||||||
```yaml
|
```yaml
|
||||||
|
|
Loading…
Reference in a new issue