2022-11-29 08:02:27 +00:00
|
|
|
import * as core from "@actions/core";
|
|
|
|
|
|
|
|
import { Inputs } from "./constants";
|
|
|
|
import run from "./restore";
|
|
|
|
|
|
|
|
async function runRestoreAction(): Promise<void> {
|
|
|
|
if (core.getInput(Inputs.SaveOnAnyFailure) != "") {
|
2022-11-29 08:06:41 +00:00
|
|
|
core.warning(
|
|
|
|
`${Inputs.SaveOnAnyFailure} value is passed in the input, this input is invalid for the restore-only action and hence will be ignored`
|
2022-11-29 08:02:27 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
if (core.getInput(Inputs.UploadChunkSize) != "") {
|
2022-11-29 08:06:41 +00:00
|
|
|
core.warning(
|
|
|
|
`${Inputs.UploadChunkSize} value is passed in the input, this input is invalid for the restore-only action and hence will be ignored`
|
2022-11-29 08:02:27 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
await run();
|
|
|
|
}
|
|
|
|
|
|
|
|
runRestoreAction();
|
|
|
|
|
|
|
|
export default runRestoreAction;
|