Skip to content

Commit

Permalink
fix ssh cmd
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
  • Loading branch information
Dave Grantham committed Apr 28, 2024
1 parent 0e4da28 commit c38e28b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ inputs:
ssh-add-cmd:
description: 'ssh-add command'
required: false
ssh-cmd:
description: 'ssh command'
required: false
git-cmd:
description: 'git command'
required: false
Expand Down
3 changes: 2 additions & 1 deletion dist/cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2684,13 +2684,14 @@ module.exports = (process.env['OS'] != 'Windows_NT') ? {
homePath: os.userInfo().homedir,
sshAgentCmdDefault: 'ssh-agent',
sshAddCmdDefault: 'ssh-add',
sshCmd: 'ssh',
sshCmdDefault: 'ssh',
gitCmdDefault: 'git'
} : {
// Assuming GitHub hosted `windows-*` runners for now
homePath: os.homedir(),
sshAgentCmdDefault: 'c://progra~1//git//usr//bin//ssh-agent.exe',
sshAddCmdDefault: 'c://progra~1//git//usr//bin//ssh-add.exe',
sshCmd: 'c://progra~1//git//usr//bin//ssh.exe',
gitCmdDefault: 'c://progra~1//git//bin//git.exe'
};

Expand Down
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2684,13 +2684,14 @@ module.exports = (process.env['OS'] != 'Windows_NT') ? {
homePath: os.userInfo().homedir,
sshAgentCmdDefault: 'ssh-agent',
sshAddCmdDefault: 'ssh-add',
sshCmd: 'ssh',
sshCmdDefault: 'ssh',
gitCmdDefault: 'git'
} : {
// Assuming GitHub hosted `windows-*` runners for now
homePath: os.homedir(),
sshAgentCmdDefault: 'c://progra~1//git//usr//bin//ssh-agent.exe',
sshAddCmdDefault: 'c://progra~1//git//usr//bin//ssh-add.exe',
sshCmd: 'c://progra~1//git//usr//bin//ssh.exe',
gitCmdDefault: 'c://progra~1//git//bin//git.exe'
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cryptid-action-ssh-agent",
"repository": "git@github.com:cryptidtech/ssh-agent.git",
"description": "GitHub Action to set up ssh-agent with a private SSH key",
"version": "0.1.10",
"version": "0.1.11",
"main": "index.js",
"author": "webfactory GmbH <info@webfactory.de>",
"license": "MIT",
Expand Down
3 changes: 2 additions & 1 deletion paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ module.exports = (process.env['OS'] != 'Windows_NT') ? {
homePath: os.userInfo().homedir,
sshAgentCmdDefault: 'ssh-agent',
sshAddCmdDefault: 'ssh-add',
sshCmd: 'ssh',
sshCmdDefault: 'ssh',
gitCmdDefault: 'git'
} : {
// Assuming GitHub hosted `windows-*` runners for now
homePath: os.homedir(),
sshAgentCmdDefault: 'c://progra~1//git//usr//bin//ssh-agent.exe',
sshAddCmdDefault: 'c://progra~1//git//usr//bin//ssh-add.exe',
sshCmd: 'c://progra~1//git//usr//bin//ssh.exe',
gitCmdDefault: 'c://progra~1//git//bin//git.exe'
};

0 comments on commit c38e28b

Please sign in to comment.