Skip to content

Commit f72ee4a

Browse files
committed
changing to always make the PR created if MERGE_MANIFEST_BRANCH is true
and not make it contingent on success since CI can be flaky
1 parent 572002b commit f72ee4a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
# Only bump if everything succeeds
149149
merge-new-manifest:
150150
runs-on: ubuntu-22.04
151-
if: needs.metadata.outputs.MERGE_BUMPED_MANIFEST == 'true' && needs.metadata.outputs.MANIFEST_BRANCH != github.sha
151+
if: !cancelled() && needs.metadata.outputs.MERGE_BUMPED_MANIFEST == 'true' && needs.metadata.outputs.MANIFEST_BRANCH != github.sha
152152
needs:
153153
- metadata
154154
- amd64
@@ -170,7 +170,9 @@ jobs:
170170
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
171171

172172
- name: "Merging PR #${{ fromJson(steps.create_pr.outputs.data).number }}"
173-
id: merge_pr
173+
if: |
174+
!contains(needs.*.result, 'failure') &&
175+
!contains(needs.*.result, 'cancelled')
174176
uses: octokit/[email protected]
175177
with:
176178
route: PUT /repos/{owner_and_repo}/pulls/${{ fromJson(steps.create_pr.outputs.data).number }}/merge

0 commit comments

Comments
 (0)