mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-24 17:09:32 +01:00
Document the new action inputs. (#52)
This commit is contained in:
parent
050645d214
commit
e275dda72e
3 changed files with 9 additions and 8 deletions
13
action.yml
13
action.yml
|
@ -13,18 +13,19 @@ inputs:
|
|||
manifest-path:
|
||||
description: 'Path to Cargo.toml of crate or workspace to check. If not specified, the action assumes the manifest is under the default `GITHUB_WORKSPACE` path.'
|
||||
required: false
|
||||
feature-group:
|
||||
description: 'Override the feature group used for semver-checking, for example if you only want to check with default features.'
|
||||
required: false
|
||||
features:
|
||||
description: 'Comma-separated list of crate features to explicitly include when semver-checking.'
|
||||
required: false
|
||||
verbose:
|
||||
description: 'Enables verbose output of `cargo-semver-checks`.'
|
||||
type: boolean
|
||||
required: true
|
||||
default: false
|
||||
default: 'false'
|
||||
release-type:
|
||||
description: 'Sets the release type instead of deriving it from the version number specified in the `Cargo.toml` file.'
|
||||
required: false
|
||||
options:
|
||||
- patch
|
||||
- minor
|
||||
- major
|
||||
rust-toolchain:
|
||||
description: 'Rust toolchain name to use, e.g. `stable`, `nightly` or `1.68.0`. It will be installed if necessary and used regardless of local overrides and the `rust-toolchain.toml` file. However, if the input is set to `manual`, the action assumes some Rust toolchain is already installed and uses the default one.'
|
||||
default: 'stable'
|
||||
|
|
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -23,7 +23,7 @@ function getCheckReleaseArguments(): string[] {
|
|||
optionIfValueProvided("--manifest-path", rustCore.input.getInput("manifest-path")),
|
||||
optionIfValueProvided("--release-type", rustCore.input.getInput("release-type")),
|
||||
getFeatureGroup(rustCore.input.getInput("feature-group")),
|
||||
optionFromList("--feature", rustCore.input.getInputList("feature")),
|
||||
optionFromList("--features", rustCore.input.getInputList("features")),
|
||||
rustCore.input.getInputBool("verbose") ? ["--verbose"] : [],
|
||||
].flat();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue