Merge pull request #171 from crazy-max/rmsync

Fix deprecated fs.rmdir
pull/165/head v2.1.0
CrazyMax 3 years ago committed by GitHub
commit 95cb08cb26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -146,7 +146,7 @@ async function cleanup(): Promise<void> {
if (stateHelper.credsDir.length > 0 && fs.existsSync(stateHelper.credsDir)) { if (stateHelper.credsDir.length > 0 && fs.existsSync(stateHelper.credsDir)) {
core.info(`Cleaning up credentials`); core.info(`Cleaning up credentials`);
fs.rmdirSync(stateHelper.credsDir, {recursive: true}); fs.rmSync(stateHelper.credsDir, {recursive: true});
} }
} }

Loading…
Cancel
Save