Skip to content

Conversation

@mndeveci
Copy link
Contributor

@mndeveci mndeveci commented Nov 4, 2023

Our branch protection rules has a root job called PR Workflow which depends on all other Github Actions that we have and reports a success or failure depending on them.

However this configuration doesn't work if any job fails since it will cause this PR Workflow job to be skipped and GH will merge the PR in that case.

This change adds a condition to the PR Workflow which will force to run PR Workflow even though the others have failed.

Example run before adding the condition: #6219
Even though some CI checks have failed, GH still merged the PR. We can see that PR Workflow was skipped for this instance.

Example run after applying the suggested solution: #6220
This PR was blocked from merging and we can validate that it ran the PR Workflow (didn't skip it)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mndeveci mndeveci marked this pull request as ready for review November 7, 2023 22:59
@mndeveci mndeveci requested a review from a team as a code owner November 7, 2023 22:59
@mndeveci mndeveci enabled auto-merge November 7, 2023 23:42
@mndeveci mndeveci added this pull request to the merge queue Nov 7, 2023
Merged via the queue into aws:develop with commit eb47e4a Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants