Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflow: Add check-main-status workflow #383

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Conversation

gregersrygg
Copy link
Collaborator

The workflow checks the status of the main branch. When checks on main are failing the workflow should fail. Preventing adding more changes when main is broken.

@gregersrygg gregersrygg force-pushed the check-main-status branch 9 times, most recently from 13d9ee1 to 5b68e25 Compare October 9, 2024 08:58
@gregersrygg gregersrygg force-pushed the check-main-status branch 2 times, most recently from 90f64ca to 9aa783e Compare October 9, 2024 12:54
@gregersrygg gregersrygg added the fix-ci Mark a PR that fixes main CI to skip the check that main CI is passing. label Oct 9, 2024
@gregersrygg gregersrygg force-pushed the check-main-status branch 2 times, most recently from 0455c4e to 629e9c6 Compare October 10, 2024 12:03
@gregersrygg gregersrygg removed the fix-ci Mark a PR that fixes main CI to skip the check that main CI is passing. label Oct 10, 2024
@gregersrygg gregersrygg force-pushed the check-main-status branch 14 times, most recently from 7953c0b to 2aff4a0 Compare October 11, 2024 12:03
@gregersrygg gregersrygg force-pushed the check-main-status branch 6 times, most recently from 3a52255 to 98c6cf1 Compare October 11, 2024 14:15
The workflow checks the result of check runs on the latest commit on
the main branch. When checks on main are failing the check will fail.
If main is pending the check will retry every 5 mintues for an hour.
This prevents introducing more potenisal issues when main is already
broken.

To skip the check when making a fix for main, add the fix-ci label to
the PR.

Signed-off-by: Gregers Gram Rygg <gregers.gram.rygg@nordicsemi.no>
@gregersrygg gregersrygg marked this pull request as ready for review October 14, 2024 08:37
@gregersrygg gregersrygg self-assigned this Oct 14, 2024
@gregersrygg gregersrygg added this pull request to the merge queue Oct 14, 2024
Merged via the queue into main with commit a04b2ad Oct 14, 2024
5 checks passed
@gregersrygg gregersrygg deleted the check-main-status branch October 14, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants