2021-03-10 07:19:17 +00:00
|
|
|
const os = require('os');
|
|
|
|
|
|
|
|
module.exports = (process.env['OS'] != 'Windows_NT') ? {
|
|
|
|
// Use getent() system call, since this is what ssh does; makes a difference in Docker-based
|
|
|
|
// Action runs, where $HOME is different from the pwent
|
2022-10-19 11:27:50 +00:00
|
|
|
homePath: os.userInfo().homedir,
|
2023-01-27 17:09:18 +00:00
|
|
|
sshAgentCmdDefault: 'ssh-agent',
|
|
|
|
sshAddCmdDefault: 'ssh-add',
|
|
|
|
gitCmdDefault: 'git'
|
2021-03-10 07:19:17 +00:00
|
|
|
} : {
|
2022-10-19 11:27:50 +00:00
|
|
|
// Assuming GitHub hosted `windows-*` runners for now
|
|
|
|
homePath: os.homedir(),
|
2023-01-27 17:09:18 +00:00
|
|
|
sshAgentCmdDefault: 'c://progra~1//git//usr//bin//ssh-agent.exe',
|
|
|
|
sshAddCmdDefault: 'c://progra~1//git//usr//bin//ssh-add.exe',
|
|
|
|
gitCmdDefault: 'c://progra~1//git//bin//git.exe'
|
2021-03-10 07:19:17 +00:00
|
|
|
};
|