deployer
                                
                                 deployer copied to clipboard
                                
                                    deployer copied to clipboard
                            
                            
                            
                        fail-support in YAML-recipes
With fail one can specify which task should run on failure of a specific task, e.g. https://github.com/deployphp/deployer/blob/ff3c33c0a47723378a5af4ee615f3466018dec93/recipe/common.php#L167-L169
When using the deploy-task there is already a fail-task defined deploy:failed, but when creating own tasks in YAML there is currently no way to execute something if a task failed. Therefore it would be good to have the fail-function also available in YAML.
Isn't it just simply
after:
    deploy:failed: deploy:unlock
untested - maybe before should be used :thinking:
Isn't it just simply
after: deploy:failed: deploy:unlockuntested - maybe
beforeshould be used 🤔
As said: When using the deploy-task there is already a fail-task defined deploy:failed, but when creating own tasks in YAML there is currently no way to execute something if a task failed.