mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-05-19 06:14:46 +00:00
Merge master into ethanis/cache-multiple-paths
This commit is contained in:
commit
f68f5d03cc
15 changed files with 3437 additions and 602 deletions
|
@ -4,6 +4,7 @@ import * as glob from "@actions/glob";
|
|||
import * as fs from "fs";
|
||||
import * as os from "os";
|
||||
import * as path from "path";
|
||||
import * as util from "util";
|
||||
import * as uuidV4 from "uuid/v4";
|
||||
|
||||
import { Events, Outputs, State } from "../constants";
|
||||
|
@ -112,3 +113,7 @@ export function isValidEvent(): boolean {
|
|||
const githubEvent = process.env[Events.Key] || "";
|
||||
return getSupportedEvents().includes(githubEvent);
|
||||
}
|
||||
|
||||
export function unlinkFile(path: fs.PathLike): Promise<void> {
|
||||
return util.promisify(fs.unlink)(path);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue