mirror of
https://gitee.com/actions-mirror/docker-setup-buildx-action.git
synced 2024-11-23 22:00:42 +08:00
Fix deprecated fs.rmdir
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
83612bea36
commit
eb5c2a6eea
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
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…
Reference in New Issue
Block a user