mirror of
https://github.com/dagger/dagger-for-github.git
synced 2025-12-31 20:59:43 +11:00
Fix deprecation warning since Node 16
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
aded4b9914
commit
cdfe7bab61
3 changed files with 7 additions and 4 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
|
@ -63,8 +63,11 @@ async function cleanup(): Promise<void> {
|
|||
if (!stateHelper.cleanup) {
|
||||
return;
|
||||
}
|
||||
core.info(`Removing ${path.join(os.homedir(), '.config', 'dagger')}`);
|
||||
fs.rmdirSync(path.join(os.homedir(), '.config', 'dagger'), {recursive: true});
|
||||
const daggerHome = path.join(os.homedir(), '.config', 'dagger');
|
||||
if (fs.existsSync(daggerHome)) {
|
||||
core.info(`Removing ${daggerHome}`);
|
||||
fs.rmSync(daggerHome, {recursive: true});
|
||||
}
|
||||
}
|
||||
|
||||
if (!stateHelper.IsPost) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue