Failing the job if a change is detected #215
Replies: 1 comment
-
As always in programming, I would say: It depends. :) I personally haven't come across a scenario, where it would make sense to make a job fail, if the job can "fix" code and commit the changes automatically. A failed job …
A failed job also signifies to me, that I should take a closer look, as something that should be automated failed. For example when running automated tests, a dependency update could break something. That problem can't easily be solved automatically. Have you come across scenarios and workflows, where it would make sense to make the job fail? |
Beta Was this translation helpful? Give feedback.
-
I've been discussing with a colleague if the best practice with committing changed code to a PR branch (such as formatted / generated code) is to have the action fail or succeed. I was wondering if you would comment on this.
Arguments for
success
Arguments for
fail
Beta Was this translation helpful? Give feedback.
All reactions