Skip to content

Commit

Permalink
Fix deprecated fs.rmdir
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Oct 12, 2022
1 parent 83612be commit eb5c2a6
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 @@ -146,7 +146,7 @@ async function cleanup(): Promise<void> {

if (stateHelper.credsDir.length > 0 && fs.existsSync(stateHelper.credsDir)) {
core.info(`Cleaning up credentials`);
fs.rmdirSync(stateHelper.credsDir, {recursive: true});
fs.rmSync(stateHelper.credsDir, {recursive: true});
}
}

Expand Down

0 comments on commit eb5c2a6

Please sign in to comment.