diff --git a/action.js b/action.js index f4858f0..c86884c 100644 --- a/action.js +++ b/action.js @@ -73,7 +73,7 @@ async function detectGitChanges() { }; await exec.exec('git status -s', '', execOptionsGitChanges); core.info("gitChanges undefined check: ") - core.info(typeof gitChanges !== "undefined") + core.info(gitChanges !== undefined) core.info("gitChanges undefined check end") core.info("gitChanges not empty check: ") @@ -85,9 +85,9 @@ async function detectGitChanges() { core.info("gitChanges output end") core.info("Whole check evaluation: ") - core.info(typeof gitChanges !== "undefined" && gitChanges !== "") + core.info(gitChanges !== undefined && gitChanges !== "") core.info("Whole check evaluation end") - return typeof gitChanges !== "undefined" && gitChanges !== "" + return gitChanges !== undefined && gitChanges !== "" } async function branchWithNameAlreadyExist(githubToken, branchName, repoOwner, repoName) { diff --git a/dist/index.js b/dist/index.js index c045cc9..bd82b97 100644 --- a/dist/index.js +++ b/dist/index.js @@ -79,7 +79,7 @@ async function detectGitChanges() { }; await exec.exec('git status -s', '', execOptionsGitChanges); core.info("gitChanges undefined check: ") - core.info(typeof gitChanges !== "undefined") + core.info(gitChanges !== undefined) core.info("gitChanges undefined check end") core.info("gitChanges not empty check: ") @@ -91,9 +91,9 @@ async function detectGitChanges() { core.info("gitChanges output end") core.info("Whole check evaluation: ") - core.info(typeof gitChanges !== "undefined" && gitChanges !== "") + core.info(gitChanges !== undefined && gitChanges !== "") core.info("Whole check evaluation end") - return typeof gitChanges !== "undefined" && gitChanges !== "" + return gitChanges !== undefined && gitChanges !== "" } async function branchWithNameAlreadyExist(githubToken, branchName, repoOwner, repoName) {