Skip to content

Fix collector workflow - #328

Merged
masklinn merged 1 commit into
ua-parser:masterfrom
masklinn:ci-result-fix
Nov 8, 2026
Merged

masklinn merged 1 commit into
ua-parser:masterfrom
masklinn:ci-result-fix

Conversation

@masklinn

@masklinn masklinn commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

If a workflow is skipped, github considers it successful rather than unsuccessful, this is what caused #294 to automerge despite errors which had to be fixed in #295.

By forcing the workflow to run then checking the the requirements were successful it should actually do what it's supposed to...

Fixes #327

Reported-By: Lucas Sotomayor lasotomayor20@gmail.com

@sotomayorlucas

Copy link
Copy Markdown

Thanks! This looks right to me: with if: always() and both results required to be success, a failed, cancelled/timed-out or skipped job now fails "CI Results" instead of letting it be skipped.

If a workflow is skipped, github considers it successful rather than
unsuccessful, this is what caused ua-parser#294 to automerge despite errors
which had to be fixed in ua-parser#295.

By forcing the workflow to run then checking the the requirements were
successful it should actually do what it's supposed to...

Fixes ua-parser#327

Reported-By: Lucas Sotomayor <lasotomayor20@gmail.com>
@masklinn
masklinn merged commit a88623e into ua-parser:master Nov 8, 2026
36 checks passed
@masklinn
masklinn deleted the ci-result-fix branch November 8, 2026 16:27
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.

CI: "CI Results" required check passes when checks or test fail (gate job is skipped)

2 participants