From 515d164e78d902edeb5c201b2090a14a17549447 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Wed, 2 Jun 2021 22:15:05 +0200 Subject: [PATCH] Run cleanup (post) step also on failure (#79) According to https://github.com/actions/runner/issues/987, this should run the post step (cleanup.js) also when a workflow fails. Probably most important on self-hosted runners that are not ephemeral, to terminate SSH agents from failed jobs as well. --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index e43c44f..16aaba6 100644 --- a/action.yml +++ b/action.yml @@ -10,6 +10,7 @@ runs: using: 'node12' main: 'dist/index.js' post: 'dist/cleanup.js' + post-if: 'always()' branding: icon: loader color: 'yellow'