mirror of
https://github.com/webfactory/ssh-agent.git
synced 2025-12-16 16:32:35 +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)
|
||
|
|
}
|