Read out HOME instead of the os query info
As when using the gitea-actions-runner on NixOS it is using systemd dynamic user
This commit is contained in:
parent
a6f90b1f12
commit
8df636d8b2
2 changed files with 27 additions and 25 deletions
3
index.js
3
index.js
|
@ -2,6 +2,7 @@ const core = require('@actions/core');
|
|||
const child_process = require('child_process');
|
||||
const fs = require('fs');
|
||||
const crypto = require('crypto');
|
||||
const path = require('path');
|
||||
const { homePath, sshAgentCmd, sshAddCmd, gitCmd } = require('./paths.js');
|
||||
|
||||
try {
|
||||
|
@ -14,7 +15,7 @@ try {
|
|||
return;
|
||||
}
|
||||
|
||||
const homeSsh = homePath + '/.ssh';
|
||||
const homeSsh = path.join(homePath, '.ssh');
|
||||
fs.mkdirSync(homeSsh, { recursive: true });
|
||||
|
||||
console.log("Starting ssh-agent");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue