Calling core.setFailed() doesn't mark step as failed #25165
-
Even though I called core.setFailed() in my error handling code, it didn’t mark the step as failed. I would like to be able to give users the chance to retry the workflow. I’m not sure if I’m doing something wrong. Issue summarized here: williamhaw/setup-wiremock-action#2 Code: https://github.com/williamhaw/setup-wiremock-action/blob/master/index.js |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @williamhaw , I checked core.setFailed() in my side, it will mark the step as failed. Your issue is caused by " continue-on-error: true" in your Action E2E Test step , it will mark the step succeed.
You could remove the continue-on-error option. If you still want to run the next step, you could add if: always() in the next step. |
Beta Was this translation helpful? Give feedback.
-
Aha PEBKAC strikes again! I originally added continue-on-error because I needed to debug something but it’s no longer needed. Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @williamhaw ,
I checked core.setFailed() in my side, it will mark the step as failed.
Your issue is caused by " continue-on-error: true" in your Action E2E Test step , it will mark the step succeed.
You could remove the continue-on-error option.
If you still want to run the …