Skip to content

Commit

Permalink
chore: fix summary
Browse files Browse the repository at this point in the history
  • Loading branch information
clechasseur committed Jan 12, 2025
1 parent 3cdd0c8 commit 15c745b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,12 @@ export async function run(actionInput: input.Input): Promise<void> {
stdout: (buffer: Buffer) => (cargoVersion = buffer.toString().trim()),
},
});
if (actionInput.tool) {
await program.call(['-V'], {
silent: true,
listeners: {
stdout: (buffer: Buffer) => (programVersion = buffer.toString().trim()),
},
});
}
await program.call(['-V'], {
silent: true,
listeners: {
stdout: (buffer: Buffer) => (programVersion = buffer.toString().trim()),
},
});
await cargo.call(['clippy', '-V'], {
silent: true,
listeners: {
Expand Down Expand Up @@ -106,7 +104,7 @@ export async function run(actionInput: input.Input): Promise<void> {
await runner.addSummary({
rustc: rustcVersion,
cargo: cargoVersion,
...(programVersion && { program: programVersion }),
...(programVersion !== cargoVersion && { program: programVersion }),
clippy: clippyVersion,
});

Expand Down

0 comments on commit 15c745b

Please sign in to comment.