Skip to content

Commit

Permalink
Merge pull request #657 from bendrucker/deprecated-fs-rmdir
Browse files Browse the repository at this point in the history
Replace deprecated `fs.rmdir` with `fs.rm`
  • Loading branch information
crazy-max authored Jul 28, 2022
2 parents 1cb9d22 + 988cb09 commit 67af6dc
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 67af6dc

Please sign in to comment.