Skip to content

Commit

Permalink
Merge pull request #171 from crazy-max/rmsync
Browse files Browse the repository at this point in the history
Fix deprecated fs.rmdir
  • Loading branch information
crazy-max authored Oct 12, 2022
2 parents 83612be + eb5c2a6 commit 95cb08c
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 95cb08c

Please sign in to comment.