mirror of
https://github.com/webfactory/ssh-agent.git
synced 2025-04-22 06:08:42 +00:00
* add `cleanup.js` for stopping the ssh-agent after the job is done * add `scripts/build.js` to make it easier to build the files in `dist/` * update README * remove meaningless dependency `child_process` (its a node core package) * update `@actions/core` to `^1.2.4`
10 lines
277 B
JavaScript
10 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)
|
|
}
|