[WIP] Fix ref on GitHub Actions checkout step #5954
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
馃帺 What? Why?
We've noticed more funky issues with coverage reports. More precisely, the issue seems to come from a bunch of factors, but let me try to explain the issue first.
How to reproduce
To be fair, the step 2 should be fixed by #5910, but the real issue persists.
Reasons why it's failing
If you check the
checkout
step on a successful workflow, you'll see it's creating a special branch namespull/<PR id>/merge
(replacing<PR id>
with the correct number). This creates a new commit.If you check the same step for a first-failed-then-successful workflow you'll see it's not using that werid branch name, but instead it's using the real branch name. This inconsistency makes the coverage report to fail, for some reason.
Checking the
actions/checkout
repository, I don't see any specific place where that weird branch name is specified, so this would only mean it comes from the GitHub Actions environment itself.馃搶 Related Issues
馃搵 Subtasks
CHANGELOG
entry馃摲 Screenshots (optional)