From a9d0061bfd82e1cc95518c32159c1a6b1a9b7c2b Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Wed, 2 Jun 2021 14:38:13 +0000 Subject: [PATCH] Run cleanup (post) step also on failure 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'