cargo-semver-checks/action.yml
Mieszko Grodzicki 7eca687541
Change '' to 'manual' for rust-toolchain input (#41)
* Change '' to 'manual' for rust-toolchain

* Default is stable, modify tests
2023-04-23 12:35:09 -04:00

34 lines
1.8 KiB
YAML

name: 'cargo-semver-checks'
description: 'Ensure the public API in your Rust crate follows semantic versioning'
branding:
icon: 'check-circle'
color: 'green'
inputs:
package:
description: 'The package whose API to check for semver (in Package Id Specification format, see https://doc.rust-lang.org/cargo/reference/pkgid-spec.html for reference). If not set, all packages defined in the Cargo.toml file are processed.'
required: false
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
verbose:
description: 'Enables verbose output of `cargo-semver-checks`.'
type: boolean
required: true
default: false
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'
shared-key:
description: 'A cache key that will be used instead of the automatic key based on the name of the GitHub job and values of the inputs `package` and `manifest-path`. Might be provided e.g. to share the cache between the jobs.'
required: false
default: ''
prefix-key:
description: 'Additional prefix of the cache key, can be set to start a new cache manually.'
required: false
github-token:
description: 'The `GITHUB_TOKEN` secret used to download precompiled binaries from GitHub API. If not specified, the automatic GitHub token provided to the workflow will be used.'
required: false
default: ${{ github.token }}
runs:
using: 'node16'
main: 'dist/index.js'