Skip to content

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.

@trask trask marked this pull request as ready for review November 16, 2024 21:17
@trask trask requested a review from a team November 16, 2024 21:17

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