Save-only warning added

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

No files matched your search

+6 -1
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();