mirror of
https://github.com/s4u/maven-settings-action.git
synced 2026-02-19 00:00:25 +08:00
home path on windows
This commit is contained in:
9
index.js
9
index.js
@ -8,7 +8,14 @@ const settings = require('./settings');
|
||||
async function run() {
|
||||
|
||||
try {
|
||||
const settingsPath = path.join(process.env.HOME, '.m2', 'settings.xml');
|
||||
var settingsPath;
|
||||
try {
|
||||
settingsPath= path.join(process.env['HOME'], '.m2', 'settings.xml');
|
||||
} catch (error) {
|
||||
console.log("HOME=" + process.env['HOME']);
|
||||
throw error;
|
||||
}
|
||||
|
||||
core.info('Prepare maven setings: ' + settingsPath);
|
||||
|
||||
if (fs.existsSync(settingsPath)) {
|
||||
|
||||
Reference in New Issue
Block a user