mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-28 03:43:55 +08:00
Apply workaround for earlyExit
This commit is contained in:
parent
3185ecfd61
commit
01229828ff
8 changed files with 192 additions and 144 deletions
|
@ -1,15 +1,3 @@
|
|||
import * as core from "@actions/core";
|
||||
import { saveOnlyRun } from "./saveImpl";
|
||||
|
||||
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;
|
||||
saveOnlyRun(true);
|
Loading…
Add table
Add a link
Reference in a new issue