Fix deprecated fs.rmdir

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2022-10-12 12:05:06 +02:00
parent 83612bea36
commit eb5c2a6eea
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
3 changed files with 3 additions and 3 deletions

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -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});
}
}