mirror of
https://github.com/dagger/dagger-for-github.git
synced 2026-01-03 13:49:45 +11:00
Fix config path
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
33c13c68bd
commit
47153151e8
3 changed files with 16 additions and 16 deletions
10
dist/index.js
generated
vendored
10
dist/index.js
generated
vendored
|
|
@ -206,10 +206,10 @@ function run() {
|
|||
}
|
||||
if (inputs.ageKey) {
|
||||
yield core.group(`Import Dagger private key`, () => __awaiter(this, void 0, void 0, function* () {
|
||||
if (!fs_1.default.existsSync(path_1.default.join(os_1.default.homedir(), '.dagger'))) {
|
||||
fs_1.default.mkdirSync(path_1.default.join(os_1.default.homedir(), '.dagger'), { recursive: true });
|
||||
if (!fs_1.default.existsSync(path_1.default.join(os_1.default.homedir(), '.config', 'dagger'))) {
|
||||
fs_1.default.mkdirSync(path_1.default.join(os_1.default.homedir(), '.config', 'dagger'), { recursive: true });
|
||||
}
|
||||
yield fs_1.default.writeFileSync(path_1.default.join(os_1.default.homedir(), '.dagger', 'keys.txt'), inputs.ageKey);
|
||||
yield fs_1.default.writeFileSync(path_1.default.join(os_1.default.homedir(), '.config', 'dagger', 'keys.txt'), inputs.ageKey);
|
||||
}));
|
||||
}
|
||||
if (inputs.workdir && inputs.workdir !== '.') {
|
||||
|
|
@ -229,8 +229,8 @@ function cleanup() {
|
|||
if (!stateHelper.cleanup) {
|
||||
return;
|
||||
}
|
||||
core.info(`Removing ${path_1.default.join(os_1.default.homedir(), '.dagger')}`);
|
||||
fs_1.default.rmdirSync(path_1.default.join(os_1.default.homedir(), '.dagger'), { recursive: true });
|
||||
core.info(`Removing ${path_1.default.join(os_1.default.homedir(), '.config', 'dagger')}`);
|
||||
fs_1.default.rmdirSync(path_1.default.join(os_1.default.homedir(), '.config', 'dagger'), { recursive: true });
|
||||
});
|
||||
}
|
||||
if (!stateHelper.IsPost) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue