guitarrapc / git-shallow-clone-orb

circleci orb to execute git shallow clone for faster checkout.
https://circleci.com/orbs/registry/orb/guitarrapc/git-shallow-clone
MIT License
21 stars 11 forks source link

Please add an `allow_fail` option #62

Open gdubicki opened 4 months ago

gdubicki commented 4 months ago

Is there an existing issue that is already proposing this?

Describe the problem imposed by not having this feature

Sometimes we merge a PR without waiting for its CircleCI workflow to complete. When we merge, we delete the source branch. Then the subsequent job in that workflow fails on the git-shallow-clone/checkout step because the branch doesn't exist...

We would like to have a solution to prevent such workflows from spoiling our CI statistics.

Describe the solution you'd like

I propose to add an allow_fail option, set to false by default. If set to true, then the whole step would exit with code 0 even if anything would go wrong in it.

We would set it for our non-critical jobs, such as sending test coverage info to our coverage server.