Skip to content

Commit

Permalink
Next try
Browse files Browse the repository at this point in the history
  • Loading branch information
StefMa committed Dec 22, 2023
1 parent 5ac5d36 commit 8c472e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions action.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ async function branchWithNameAlreadyExist(branchName, githubToken, repoOwner, re
return item.name == branchName
})

let found = brancheWithName != undefined
core.info("Found this: " + brancheWithName)
core.info("Is this undefined? " + brancheWithName != undefined)
return brancheWithName != undefined
core.info("Is this undefined? " + found)
return brancheWithName !== undefined
}

async function createPullRequest(branchName, latestGoVersion, repoOwner, repoName) {
Expand Down
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ async function branchWithNameAlreadyExist(branchName, githubToken, repoOwner, re
return item.name == branchName
})

let found = brancheWithName != undefined
core.info("Found this: " + brancheWithName)
core.info("Is this undefined? " + brancheWithName != undefined)
return brancheWithName != undefined
core.info("Is this undefined? " + found)
return brancheWithName !== undefined
}

async function createPullRequest(branchName, latestGoVersion, repoOwner, repoName) {
Expand Down

0 comments on commit 8c472e9

Please sign in to comment.