mirror of
https://github.com/actions-rs/cargo.git
synced 2024-12-22 23:55:48 +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';
|
program = 'cargo';
|
||||||
}
|
}
|
||||||
|
|
||||||
let args: string[] = [];
|
let args: string[] = [actionInput.command];
|
||||||
if (actionInput.toolchain) {
|
if (actionInput.toolchain) {
|
||||||
args.push(`+${actionInput.toolchain}`);
|
args.push(`+${actionInput.toolchain}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
args = args.concat(actionInput.args);
|
args = args.concat(actionInput.args);
|
||||||
|
console.log(program, args);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await exec.exec(program, args);
|
await exec.exec(program, args);
|
||||||
|
|
Loading…
Reference in a new issue