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 required status check #1545

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

trask
Copy link
Member

@trask trask commented Nov 16, 2024

This fixes the problem that I was able to merge #1544 even though one of the tests was failing.

@@ -153,7 +153,7 @@ jobs:
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}

required-status-check:
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' && always()
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not following how this helps. Isn't && always() basically && true which is always true?

Copy link
Member Author

Choose a reason for hiding this comment

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

one would think...

check out https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions#always

and you can see the difference below, required-status-check is run and fails (and so should block merging even after someone approves this PR), whereas in #1542 for example, required-status-check is skipped (and therefore didn't block merging)

@trask
Copy link
Member Author

trask commented Nov 18, 2024

I'm going to rebase now that #1546 has been merged, which should fix the integration tests and make required-status-check pass (allowing this PR to be merged)

@breedx-splk breedx-splk enabled auto-merge (squash) November 18, 2024 19:14
@breedx-splk breedx-splk merged commit ba49940 into open-telemetry:main Nov 18, 2024
14 checks passed
@trask trask deleted the fix-required-status-check branch November 18, 2024 19:26
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