The “fail deployment” action doesnt stop the process, it calls a rest operation which fails the deployment. If there are subsequent actions they will continue to execute. I would recommend to have the action at the end or add a boolean condition to stop the process or exit the flow using a while loop.