mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-11-05 10:12:55 +01:00
16 lines
335 B
TypeScript
16 lines
335 B
TypeScript
|
import * as core from "@actions/core";
|
||
|
|
||
|
import saveImpl from "./saveImpl";
|
||
|
import { NullStateProvider } from "./stateProvider";
|
||
|
|
||
|
async function run(): Promise<void> {
|
||
|
const cacheId = await saveImpl(new NullStateProvider());
|
||
|
if (cacheId === -1) {
|
||
|
core.warning(`Cache save failed.`);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
run();
|
||
|
|
||
|
export default run;
|