Skip to content

Commit

Permalink
replace deprecated fs.rmdir with fs.rm
Browse files Browse the repository at this point in the history
  • Loading branch information
bendrucker committed Jul 27, 2022
1 parent 1cb9d22 commit 5415970
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Expand Up @@ -83,7 +83,7 @@ async function run(): Promise<void> {
async function cleanup(): Promise<void> {
if (stateHelper.tmpDir.length > 0) {
core.startGroup(`Removing temp folder ${stateHelper.tmpDir}`);
fs.rmdirSync(stateHelper.tmpDir, {recursive: true});
fs.rmSync(stateHelper.tmpDir, {recursive: true});
core.endGroup();
}
}
Expand Down

0 comments on commit 5415970

Please sign in to comment.