mirror of
https://github.com/actions/cache.git
synced 2026-10-01 00:51:42 +00:00
test
This commit is contained in:
1 parent
ab0e7714ce
commit
af1210e2a3
6 files changed
+105
-75
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import * as core from "@actions/core";
|
||||
|
||||
import { Inputs } from "../constants";
|
||||
import restore from "../restore";
|
||||
|
||||
async function runRestoreAction(): Promise<void> {
|
||||
if (core.getInput(Inputs.SaveOnAnyFailure) != "") {
|
||||
core.warning(
|
||||
`${Inputs.SaveOnAnyFailure} value is passed in the input, this input is invalid for the restore-only action and hence will be ignored`
|
||||
);
|
||||
}
|
||||
if (core.getInput(Inputs.UploadChunkSize) != "") {
|
||||
core.warning(
|
||||
`${Inputs.UploadChunkSize} value is passed in the input, this input is invalid for the restore-only action and hence will be ignored`
|
||||
);
|
||||
}
|
||||
core.info("before run");
|
||||
await restore();
|
||||
core.info("after run");
|
||||
}
|
||||
|
||||
core.info("before runRestoreAction");
|
||||
runRestoreAction();
|
||||
core.info("after runRestoreAction");
|
||||
|
||||
core.info("after export default runRestoreAction");
|
||||
Reference in new issue
Block a user