Hello. If I decide to use core.setFailed(...) but there are code after that runs if it did not fail, do I need to also add a return or does setFailed automatically terminates the Action? It is not clear from the README.
Example logic:
import*ascorefrom"@actions/core";asyncfunctionrun(){if(condition1){core.setFailed("You should not have done that");// Do I need return; here?}do_stuff_on_success();}
Hello. If I decide to use
core.setFailed(...)but there are code after that runs if it did not fail, do I need to also add areturnor doessetFailedautomatically terminates the Action? It is not clear from the README.Example logic: