Skip to content

Commit

Permalink
Add cleanup script to kill ssh-server after run (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
kielabokkie authored Apr 30, 2021
1 parent 3c332d4 commit e5c88dc
Show file tree
Hide file tree
Showing 8 changed files with 3,839 additions and 456 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules/

# Editors
.vscode
.idea

# Logs
logs
Expand Down
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ inputs:
required: false
runs:
using: 'node12'
main: 'dist/index.js'
main: 'dist/main/index.js'
post: 'dist/cleanup/index.js'
branding:
icon: 'terminal'
color: 'orange'
9 changes: 9 additions & 0 deletions cleanup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const execa = require('execa')

async function run() {
console.log('Stopping ssh-agent')

await execa('kill -9 $(pidof ssh-agent)', { shell: true });
}

run()
Loading

0 comments on commit e5c88dc

Please sign in to comment.