Skip to content

Commit

Permalink
Merge pull request #215 from msbarry/fix-boolean
Browse files Browse the repository at this point in the history
fix boolean handling
  • Loading branch information
marocchino committed Dec 23, 2020
2 parents 5cdc516 + 81f6eb2 commit 8d658e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ function run() {
const message = core.getInput("message", { required: false });
const path = core.getInput("path", { required: false });
const header = core.getInput("header", { required: false }) || "";
const append = core.getInput("append", { required: false }) || false;
const recreate = core.getInput("recreate", { required: false }) || false;
const deleteOldComment = core.getInput("delete", { required: false }) || false;
const append = (core.getInput("append", { required: false }) || "false") === "true";
const recreate = (core.getInput("recreate", { required: false }) || "false") === "true";
const deleteOldComment = (core.getInput("delete", { required: false }) || "false") === "true";
const githubToken = core.getInput("GITHUB_TOKEN", { required: true });
const octokit = new github_1.GitHub(githubToken);
const previous = yield comment_1.findPreviousComment(octokit, repo, number, header);
Expand Down
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ async function run() {
const message = core.getInput("message", { required: false });
const path = core.getInput("path", { required: false });
const header = core.getInput("header", { required: false }) || "";
const append = core.getInput("append", { required: false }) || false;
const recreate = core.getInput("recreate", { required: false }) || false;
const deleteOldComment = core.getInput("delete", { required: false }) || false;
const append = (core.getInput("append", { required: false }) || "false") === "true";
const recreate = (core.getInput("recreate", { required: false }) || "false") === "true";
const deleteOldComment = (core.getInput("delete", { required: false }) || "false") === "true";
const githubToken = core.getInput("GITHUB_TOKEN", { required: true });
const octokit = new GitHub(githubToken);
const previous = await findPreviousComment(octokit, repo, number, header);
Expand Down

0 comments on commit 8d658e4

Please sign in to comment.