Skip to content

Commit

Permalink
Run cleanup (post) step also on failure (#79)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mpdude committed Jun 2, 2021
1 parent 8569bed commit 515d164
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions action.yml
Expand Up @@ -10,6 +10,7 @@ runs:
using: 'node12'
main: 'dist/index.js'
post: 'dist/cleanup.js'
post-if: 'always()'
branding:
icon: loader
color: 'yellow'

0 comments on commit 515d164

Please sign in to comment.