Skip to content

Commit 515d164

Browse files
authored
Run cleanup (post) step also on failure (#79)
According to actions/runner#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.
1 parent 8569bed commit 515d164

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

action.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ runs:
1010
using: 'node12'
1111
main: 'dist/index.js'
1212
post: 'dist/cleanup.js'
13+
post-if: 'always()'
1314
branding:
1415
icon: loader
1516
color: 'yellow'

0 commit comments

Comments
 (0)