Skip to content

Commit

Permalink
replace deprecated fs.rmdir with fs.rm
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Drucker <bvdrucker@gmail.com>
  • Loading branch information
bendrucker committed Jul 27, 2022
1 parent 1cb9d22 commit 988cb09
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
Original file line number Diff line number Diff line change
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 988cb09

Please sign in to comment.