mirror of
https://github.com/actions-rs/cargo.git
synced 2024-12-22 15:45:49 +02:00
Passing command input to the cargo invocation
This commit is contained in:
parent
7562f78615
commit
d73b4029fd
2 changed files with 3 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -30,12 +30,13 @@ async function run() {
|
|||
program = 'cargo';
|
||||
}
|
||||
|
||||
let args: string[] = [];
|
||||
let args: string[] = [actionInput.command];
|
||||
if (actionInput.toolchain) {
|
||||
args.push(`+${actionInput.toolchain}`);
|
||||
}
|
||||
|
||||
args = args.concat(actionInput.args);
|
||||
console.log(program, args);
|
||||
|
||||
try {
|
||||
await exec.exec(program, args);
|
||||
|
|
Loading…
Reference in a new issue