Skip to content

Commit

Permalink
More output
Browse files Browse the repository at this point in the history
  • Loading branch information
StefMa committed Jan 3, 2024
1 parent 850942d commit 7c290c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions action.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: ")
Expand All @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: ")
Expand All @@ -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) {
Expand Down

0 comments on commit 7c290c9

Please sign in to comment.