2020-05-18 03:08:29 -04:00
|
|
|
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) {
|
2020-06-24 02:31:28 -04:00
|
|
|
console.log(error.message);
|
|
|
|
console.log('Error stopping the SSH agent, proceeding anyway');
|
2020-05-18 03:08:29 -04:00
|
|
|
}
|