Skip to content

Commit

Permalink
def pr number
Browse files Browse the repository at this point in the history
  • Loading branch information
StRigaud committed Aug 30, 2024
1 parent 761cdd5 commit a23ff7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update_pyclesperanto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,14 @@ jobs:
repo: 'bot_playground'
});
let pr_number = '';
for (const pr of prs) {
if (pr.head.ref === `auto-update-version-${releaseTag}` && pr.state === 'open') {
console.log(`PR already exists with number: ${pr.number}`);
core.setOutput('pr_number', pr.number);
return;
}
}
if (pr_number === '') {
console.log(`No existing PR found for branch: auto-update-version-${releaseTag}`);
core.setOutput('pr_number', '');
Expand Down

0 comments on commit a23ff7b

Please sign in to comment.