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,
|
|
|
|
sshAgentCmd: 'ssh-agent',
|
|
|
|
sshAddCmd: 'ssh-add',
|
|
|
|
gitCmd: '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(),
|
|
|
|
sshAgentCmd: 'c://progra~1//git//usr//bin//ssh-agent.exe',
|
|
|
|
sshAddCmd: 'c://progra~1//git//usr//bin//ssh-add.exe',
|
|
|
|
gitCmd: 'c://progra~1//git//usr//bin//git.exe'
|
2021-03-10 02:19:17 -05:00
|
|
|
};
|