mirror of
https://github.com/actions/cache.git
synced 2025-07-06 08:32:53 +00:00
Save-only warning added
This commit is contained in:
parent
8955114d15
commit
1d114a8000
6 changed files with 85 additions and 19 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue