wearerequired / lint-action

✨ GitHub Action for detecting and auto-fixing lint errors
MIT License
555 stars 130 forks source link

Linter result gets attached to the wrong workflow #657

Closed andreiz closed 1 year ago

andreiz commented 1 year ago

I have 2 workflows running concurrently, build-and-test one and a linter one (using Apple's swift-format). The linter result (named swift-format) is being attached either to the linter workflow or to the build-and-test workflow, seemingly randomly.

This is how I expect it's supposed to be where the swift-format result is attached to my linter workflow job list.

Screenshot 2023-06-08 at 10 09 48

And this linter run does not have the result attached:

Screenshot 2023-06-08 at 10 09 06

But instead it ends up in the build-and-test workflow:

Screenshot 2023-06-08 at 10 07 02

Can you think of why this might be happening?

ocean90 commented 1 year ago

Hi there, this is an issue with how the GitHub checks API works. Checks are attached to commit SHAs and the annotations are added to latest workflow run for the commit being tested. This is nothing this action can fix.

Duplicate of #577, #401, #280, #97, #93.