mirror of
https://github.com/deployphp/action.git
synced 2025-06-28 20:24:14 +00:00
Add self-hosted option to action (#52)
+ This skips over the SSH configuration part of the action. + This is because self-hosted runners would typically have SSH already running causing ssh-agent command to throw an error (process already exists/port in use)
This commit is contained in:
parent
e93a6158ef
commit
d12c16f961
3 changed files with 13 additions and 0 deletions
4
index.js
4
index.js
|
@ -12,6 +12,10 @@ void async function main() {
|
|||
}()
|
||||
|
||||
async function ssh() {
|
||||
if (core.getBooleanInput('self-hosted')) {
|
||||
return;
|
||||
}
|
||||
|
||||
let sshHomeDir = `${process.env['HOME']}/.ssh`
|
||||
|
||||
if (!fs.existsSync(sshHomeDir)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue