|
|
@ -1,7 +1,7 @@
|
|
|
|
import * as core from "@actions/core";
|
|
|
|
import * as core from "@actions/core";
|
|
|
|
|
|
|
|
|
|
|
|
import { Inputs } from "./constants";
|
|
|
|
import { Inputs } from "./constants";
|
|
|
|
import run from "./restore";
|
|
|
|
import restore from "./restore";
|
|
|
|
|
|
|
|
|
|
|
|
async function runRestoreAction(): Promise<void> {
|
|
|
|
async function runRestoreAction(): Promise<void> {
|
|
|
|
if (core.getInput(Inputs.SaveOnAnyFailure) != "") {
|
|
|
|
if (core.getInput(Inputs.SaveOnAnyFailure) != "") {
|
|
|
@ -15,7 +15,7 @@ async function runRestoreAction(): Promise<void> {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
core.info("before run");
|
|
|
|
core.info("before run");
|
|
|
|
await run();
|
|
|
|
await restore();
|
|
|
|
core.info("after run");
|
|
|
|
core.info("after run");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -23,6 +23,4 @@ core.info("before runRestoreAction");
|
|
|
|
runRestoreAction();
|
|
|
|
runRestoreAction();
|
|
|
|
core.info("after runRestoreAction");
|
|
|
|
core.info("after runRestoreAction");
|
|
|
|
|
|
|
|
|
|
|
|
// export default runRestoreAction;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core.info("after export default runRestoreAction");
|
|
|
|
core.info("after export default runRestoreAction");
|
|
|
|