3
0
Fork 0
mirror of https://gitea.com/docker/build-push-action.git synced 2024-11-26 03:19:40 +01:00

Merge pull request #657 from bendrucker/deprecated-fs-rmdir

Replace deprecated `fs.rmdir` with `fs.rm`
This commit is contained in:
CrazyMax 2022-07-28 11:04:08 +02:00 committed by GitHub
commit 67af6dc1d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -83,7 +83,7 @@ async function run(): Promise<void> {
async function cleanup(): Promise<void> { async function cleanup(): Promise<void> {
if (stateHelper.tmpDir.length > 0) { if (stateHelper.tmpDir.length > 0) {
core.startGroup(`Removing temp folder ${stateHelper.tmpDir}`); core.startGroup(`Removing temp folder ${stateHelper.tmpDir}`);
fs.rmdirSync(stateHelper.tmpDir, {recursive: true}); fs.rmSync(stateHelper.tmpDir, {recursive: true});
core.endGroup(); core.endGroup();
} }
} }