Skip to content

Commit

Permalink
Fix add_comment input
Browse files Browse the repository at this point in the history
  • Loading branch information
mheap committed Nov 10, 2022
1 parent 990765c commit c684da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Toolkit.run(async (tools) => {
});

async function exitWithError(tools, exitType, message) {
if (tools.inputs.add_comment) {
if (tools.inputs.add_comment == "true") {
if (process.env.GITHUB_TOKEN) {
await tools.github.issues.createComment({
...tools.context.issue,
Expand Down

0 comments on commit c684da0

Please sign in to comment.