515d164e78
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.
16 lines
471 B
YAML
16 lines
471 B
YAML
name: 'webfactory/ssh-agent'
|
|
description: 'Run `ssh-agent` and load an SSH key to access other private repositories'
|
|
inputs:
|
|
ssh-private-key:
|
|
description: 'Private SSH key to register in the SSH agent'
|
|
required: true
|
|
ssh-auth-sock:
|
|
description: 'Where to place the SSH Agent auth socket'
|
|
runs:
|
|
using: 'node12'
|
|
main: 'dist/index.js'
|
|
post: 'dist/cleanup.js'
|
|
post-if: 'always()'
|
|
branding:
|
|
icon: loader
|
|
color: 'yellow'
|