Skip to content

Commit

Permalink
Fix remote branch detection
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecRust committed Apr 16, 2024
1 parent d5d3858 commit 610e5de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function run(): Promise<void> {
await git.fetch(['--all'])
const branchName = `tested-up-to-${wpVersion.replace(/\./g, '-')}`
const branches = await git.branch()
if (branches?.all?.includes(`/${branchName}`)) {
if (branches?.all.includes(`remotes/origin/${branchName}`)) {
console.log(`Branch '${branchName}' already exists.`)
core.setOutput('updated', 'false')
return
Expand Down

0 comments on commit 610e5de

Please sign in to comment.