mirror of
https://github.com/actions-rs/cargo.git
synced 2024-12-22 15:45:49 +02:00
Add group and print the outputs
This commit is contained in:
parent
03012abe8b
commit
1f50d6efca
1 changed files with 5 additions and 1 deletions
|
@ -49,8 +49,12 @@ async function main(): Promise<void> {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const { stdout, stderr } = await run(actionInput);
|
const { stdout, stderr } = await run(actionInput);
|
||||||
|
core.startGroup("setting outputs");
|
||||||
|
console.log("stdout: ", stdout.slice(0, 50), "...");
|
||||||
core.setOutput("stdout", stdout);
|
core.setOutput("stdout", stdout);
|
||||||
core.setOutput("stdout", stderr);
|
console.log("stderr: ", stderr.slice(0, 50), "...");
|
||||||
|
core.setOutput("stderr", stderr);
|
||||||
|
core.endGroup();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed((<Error>error).message);
|
core.setFailed((<Error>error).message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue