mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-12-01 08:09:15 +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;
|