Skip to content

Commit

Permalink
Add command arguments (#49)
Browse files Browse the repository at this point in the history
* Update action.yml

* Update README.md
  • Loading branch information
ryo33 committed May 6, 2022
1 parent 441b8ac commit b5f35b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ The action has three optional inputs
* `log-level`: The log level to use for `cargo-deny`, default is `warn`
* `command`: The command to use for `cargo-deny`, default is `check`
* `arguments`: The argument to pass to `cargo-deny`, default is `--all-features`. See [Common Options](https://embarkstudios.github.io/cargo-deny/cli/common.html) for a list of the available options.
* `command-arguments` The argument to pass to the command, default is emtpy. See options for [each command](https://embarkstudios.github.io/cargo-deny/cli/index.html).

### Example pipeline

Expand Down Expand Up @@ -52,6 +53,7 @@ jobs:
log-level: warn
command: check
arguments: --all-features
command-arguments: ""
```

### Use specific Rust version
Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ inputs:
description: "The arguments to pass to cargo-deny"
required: false
default: "--all-features"
command-arguments:
description: "The arguments to pass to the command"
required: false
default: ""
log-level:
description: "The log level for cargo-deny"
required: false
Expand All @@ -33,3 +37,4 @@ runs:
- ${{ inputs.log-level }}
- ${{ inputs.arguments }}
- ${{ inputs.command }}
- ${{ inputs.command-arguments }}

0 comments on commit b5f35b4

Please sign in to comment.