mirror of
https://github.com/webfactory/ssh-agent.git
synced 2024-11-24 10:07:59 +00:00
11 lines
277 B
JavaScript
11 lines
277 B
JavaScript
|
const core = require('@actions/core')
|
||
|
const { execSync } = require('child_process')
|
||
|
|
||
|
try {
|
||
|
// Kill the started SSH agent
|
||
|
console.log('Stopping SSH agent')
|
||
|
execSync('kill ${SSH_AGENT_PID}', { stdio: 'inherit' })
|
||
|
} catch (error) {
|
||
|
core.setFailed(error.message)
|
||
|
}
|