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

fix(ci): never skip successful builds check #696

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

bobslept
Copy link
Contributor

In some situations the general Check all builds successful will be skipped. There for it is possible that the required check in the PR will be ignored, even if a build is not build successful.

This implementation will ensure that the check is always run, unless it is canceled. When it runs it checks the result for failure.

It should only turn green if all builds are green.

@bobslept bobslept requested a review from castrojo as a code owner November 30, 2023 22:47
@bobslept bobslept enabled auto-merge November 30, 2023 22:47
Copy link
Member

@castrojo castrojo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! cc @ublue-os/approver so we don't forget the other repos.

@bobslept bobslept added this pull request to the merge queue Nov 30, 2023
runs-on: ubuntu-latest
needs: [push-ghcr]
steps:
- name: Exit on failure
if: ${{ needs.push-ghcr.result == 'failure' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very nice! Might have to steal reference this for my own workflows...

Merged via the queue into ublue-os:main with commit 19d7851 Nov 30, 2023
33 checks passed
@bobslept bobslept deleted the always-run-check branch November 30, 2023 23:33
This was referenced Nov 30, 2023
b- pushed a commit to briorg/bluefin that referenced this pull request Dec 9, 2023
awesomekyle pushed a commit to awesomekyle/bluefin that referenced this pull request Apr 24, 2024
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.

3 participants