Save-only warning added

This commit is contained in:
Sankalp Kotewar
2022-12-20 16:15:42 +00:00
committed by GitHub
parent 8955114d15
commit 1d114a8000
6 changed files with 85 additions and 19 deletions

View File

@@ -1,8 +1,13 @@
import * as core from "@actions/core";
import saveImpl from "./saveImpl";
import { NullStateProvider } from "./stateProvider";
async function run(): Promise<void> {
await saveImpl(new NullStateProvider());
const cacheId = await saveImpl(new NullStateProvider());
if (cacheId === -1) {
core.warning(`Cache save failed.`);
}
}
run();