Input variables
The GitHub action accepts the following input variables:
command: The release-plz command to run. Accepted values:release-pr,release. (By default it runs both commands).registry: Registry where the packages are stored. The registry name needs to be present in the Cargo config. If unspecified, thepublishfield of the package manifest is used. If thepublishfield is empty, crates.io is used.manifest_path: Path to the Cargo.toml of the project you want to update. Both Cargo workspaces and single packages are supported. (Defaults to the root directory).version: Release-plz version to use. E.g.0.3.70. (Default: latest version).config: Release-plz config file location. (Defaults torelease-plz.tomlor.release-plz.toml).token: Token used to publish to the cargo registry. Override theCARGO_REGISTRY_TOKENenvironment variable, or theCARGO_REGISTRIES_<NAME>_TOKENenvironment variable, used for registry specified in theregistryinput variable.forge(previouslybackend): Git forge. Valid values:github,gitea,gitlab. (Defaults togithub).verbose: Print module and source location in logs. I.e. adds the-vflag to the command. (Defaults tofalse).
You can specify the input variables by using the with keyword.
For example:
steps:
- ...
- name: Run release-plz
uses: release-plz/[email protected]
# Input variables
with:
command: release-pr
registry: my-registry
manifest_path: rust-crates/my-crate/Cargo.toml
version: 0.3.70
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}