new: Delete cache older than 14 days.

This commit is contained in:
Miles Johnson 2023-04-18 10:52:30 -07:00
parent c30f25ce4b
commit 0716d005db
4 changed files with 21 additions and 4 deletions

View file

@ -1,12 +0,0 @@
import * as core from '@actions/core';
import * as io from '@actions/io';
export async function rmrf(dir: string) {
core.debug(`Deleting ${dir}`);
try {
await io.rmRF(dir);
} catch (error: unknown) {
core.warning(`Failed to delete ${dir}: ${error}`);
}
}