Skip to content

Commit

Permalink
Merge pull request #89 from dfinity/othercontainers
Browse files Browse the repository at this point in the history
Fix another error.
  • Loading branch information
DFINITYManu authored Jan 23, 2025
2 parents 71001c6 + 9cb8fe7 commit fcfd88e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/update-k8s-deployments/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,16 @@ runs:
state: 'open'
});
const pulldata = pulls.data.filter((pull) => pull.title == title);
if (pulls.data.length > 0) {
if (pulldata.length > 0) {
console.log("Existing PRs:");
console.log(pulldata);
var result = await github.rest.pulls.update({
owner: owner,
repo: repo,
pull_number: pulls.data[0].number,
pull_number: pulldata[0].number,
body: 'Updating container images to incorporate [these changes](https://github.com/${{ github.repository }}/compare/${{ steps.create-rollout-commit.outputs.previous_ref }}..${{ steps.create-rollout-commit.outputs.current_ref }}).',
});
console.log("Updated pull request " + pulls.data[0].number);
console.log("Updated pull request " + pulldata[0].number);
return result;
} else {
var result = await github.rest.pulls.create({
Expand Down

0 comments on commit fcfd88e

Please sign in to comment.