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 7c290c9 commit bcaeb12
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 @@ -61,7 +61,7 @@ async function updateGoVersion(goVersion) {
}

async function detectGitChanges() {
let gitChanges;
let gitChanges = '';
const execOptionsGitChanges = {};
execOptionsGitChanges.listeners = {
stdout: (data) => {
Expand All @@ -77,7 +77,7 @@ async function detectGitChanges() {
core.info("gitChanges undefined check end")

core.info("gitChanges not empty check: ")
core.info(gitChanges !== "")
core.info(gitChanges != "")
core.info("gitChanges not empty check end")

core.info("gitChanges output: ")
Expand All @@ -87,7 +87,7 @@ async function detectGitChanges() {
core.info("Whole check evaluation: ")
core.info(gitChanges !== undefined && gitChanges !== "")
core.info("Whole check evaluation end")
return gitChanges !== undefined && gitChanges !== ""
return 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 @@ -67,7 +67,7 @@ async function updateGoVersion(goVersion) {
}

async function detectGitChanges() {
let gitChanges;
let gitChanges = '';
const execOptionsGitChanges = {};
execOptionsGitChanges.listeners = {
stdout: (data) => {
Expand All @@ -83,7 +83,7 @@ async function detectGitChanges() {
core.info("gitChanges undefined check end")

core.info("gitChanges not empty check: ")
core.info(gitChanges !== "")
core.info(gitChanges != "")
core.info("gitChanges not empty check end")

core.info("gitChanges output: ")
Expand All @@ -93,7 +93,7 @@ async function detectGitChanges() {
core.info("Whole check evaluation: ")
core.info(gitChanges !== undefined && gitChanges !== "")
core.info("Whole check evaluation end")
return gitChanges !== undefined && gitChanges !== ""
return gitChanges !== ''
}

async function branchWithNameAlreadyExist(githubToken, branchName, repoOwner, repoName) {
Expand Down

0 comments on commit bcaeb12

Please sign in to comment.