-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actions/recipe: Only run cleanup function if needed
When running nested recipes using the recipe action, if an action in the child recipe exits early (e.g. on failure) the remaining actions do not run but the cleanup functions for these remaining actions still run even though there is nothing to cleanup. This doesn't follow how Debos handles running standalone recipes, so modify the recipe action to only run action cleanup functions when the associated action needs to be cleaned up. Fixes: 74df488 ("actions: Add recipe action") Signed-off-by: Christopher Obbard <[email protected]>
- Loading branch information
Showing
1 changed file
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters