Skip to content

Fix collector workflow - #328

Open
masklinn wants to merge 1 commit into
ua-parser:masterfrom
masklinn:ci-result-fix
Open

masklinn wants to merge 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

@masklinn
masklinn force-pushed the ci-result-fix branch 3 times, most recently from 448a058 to 5d45f7e Compare November 4, 2026 20:06
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>
@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.

This branch has not been deployed

No deployments
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