mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-12-06 03:50:39 +00:00
Use rm over deprecated rmdir
this was officially deprecated in v16
```
(node:23073) [DEP0147] DeprecationWarning: In future versions of
Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use
fs.rm(path, { recursive: true }) instead
```
https://nodejs.org/api/deprecations.html#DEP0147
Signed-off-by: jbpratt <jbpratt78@gmail.com>
This commit is contained in:
parent
5ed88d269c
commit
97d8036f26
1 changed files with 1 additions and 1 deletions
|
|
@ -417,7 +417,7 @@ async function removeDockerPodmanImageStroage(): Promise<void> {
|
|||
await getPodmanPath(),
|
||||
[ ...dockerPodmanOpts, "rmi", "-a", "-f" ]
|
||||
);
|
||||
await fs.promises.rmdir(dockerPodmanRoot, { recursive: true });
|
||||
await fs.promises.rm(dockerPodmanRoot, { recursive: true });
|
||||
}
|
||||
catch (err) {
|
||||
core.warning(`Failed to remove podman image stroage ${dockerPodmanRoot}: ${err}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue