Skip to content

Commit

Permalink
Merge pull request #6 from pew-actions/mendsley/output_null_instead_o…
Browse files Browse the repository at this point in the history
…f_string

Output null instead of string 'false' when image is not found
  • Loading branch information
mendsley authored Oct 27, 2024
2 parents 13509af + da010db commit fc532c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function run() {
}
}
finally {
core.setOutput('exists', foundImage);
core.setOutput('exists', foundImage ? 'true' : null);
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async function run(): Promise<void> {
core.setFailed(error)
}
} finally {
core.setOutput('exists', foundImage)
core.setOutput('exists', foundImage ? 'true' : null)
}
}

Expand Down

0 comments on commit fc532c0

Please sign in to comment.