mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
attempt fixing github test
This commit is contained in:
parent
965dd5e29d
commit
9d2332477f
|
@ -7,12 +7,14 @@ const nconf = require("nconf");
|
|||
|
||||
var appDataPath = getAppDataPath();
|
||||
var configFolder = path.join(appDataPath, "FreeDATA");
|
||||
|
||||
let configFile = "config.json"
|
||||
|
||||
const isGitHubActions = process.env.GITHUB_ACTIONS === 'true';
|
||||
if (isGitHubActions) {
|
||||
configFile = "example.json";
|
||||
configFolder = appDataPath;
|
||||
}
|
||||
|
||||
var configPath = path.join(configFolder, configFile);
|
||||
|
||||
console.log("AppData Path:", appDataPath);
|
||||
|
|
Loading…
Reference in a new issue