2021-03-10 02:19:17 -05: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 07:27:50 -04:00
|
|
|
homePath: os.userInfo().homedir,
|
2023-01-27 12:09:18 -05:00
|
|
|
sshAgentCmdDefault: 'ssh-agent',
|
|
|
|
sshAddCmdDefault: 'ssh-add',
|
|
|
|
gitCmdDefault: 'git'
|
2021-03-10 02:19:17 -05:00
|
|
|
} : {
|
2022-10-19 07:27:50 -04:00
|
|
|
// Assuming GitHub hosted `windows-*` runners for now
|
|
|
|
homePath: os.homedir(),
|
2023-01-27 12:09:18 -05: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 02:19:17 -05:00
|
|
|
};
|