Skip to content

Incorrect exit status for fails #645

Open
@damianmikolajczak

Description

@damianmikolajczak

Hi,

I run danger-swift on Bitrise as a script step in which I execute:
swift run danger-swift ci

and regardless of the output it always return 0 as status code.

Danger correctly finds violated rules, shows a message "Failing the build, there are x fails." and posts messages under the PR/MR but the exit status is always 0 so the CI build continues instead of failing. I've also tried to run it with the "--fail-on-errors" flag but it didn't helped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions