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:
Kaare Hoff Skovgaard 2025-06-30 21:05:36 +02:00
parent a6f90b1f12
commit 8df636d8b2
Signed by: khs
GPG key ID: C7D890804F01E9F0
2 changed files with 27 additions and 25 deletions

View file

@ -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");