Prevent actions from running when the project has errors or job was canceled.