Skip to content

Commit

Permalink
make failure case more obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkeshan committed Mar 28, 2024
1 parent ea3b5a1 commit 2cb61b6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,10 @@ function run() {
score = 0
} else if (!compareOutput(output, inputs.expectedOutput, inputs.comparisonMethod)) {
status = 'fail'
message = `Output does not match expected. Got: ${output}`
message = `Output does not match expected: ${inputs.expectedOutput} Got: ${output}`
score = 0
}

if (message) {
console.log(message)
}

const result = {
version: 1,
status,
Expand All @@ -137,6 +133,7 @@ function run() {
],
}

console.log(result)
core.setOutput('result', btoa(JSON.stringify(result)))
} catch (error) {
const result = {
Expand Down

0 comments on commit 2cb61b6

Please sign in to comment.