Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect exit status for fails #645

Open
damianmikolajczak opened this issue Mar 4, 2025 · 0 comments
Open

Incorrect exit status for fails #645

damianmikolajczak opened this issue Mar 4, 2025 · 0 comments

Comments

@damianmikolajczak
Copy link

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.

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

No branches or pull requests

1 participant