1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2024-11-24 04:29:16 +01:00

added debug logs

This commit is contained in:
Sankalp Kotewar 2022-11-29 08:26:52 +00:00 committed by GitHub
parent abddc4dd44
commit dddd7ce07c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -36767,11 +36767,16 @@ function runRestoreAction() {
if (core.getInput(constants_1.Inputs.UploadChunkSize) != "") { if (core.getInput(constants_1.Inputs.UploadChunkSize) != "") {
core.warning(`${constants_1.Inputs.UploadChunkSize} value is passed in the input, this input is invalid for the restore-only action and hence will be ignored`); core.warning(`${constants_1.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");
yield (0, restore_1.default)(); yield (0, restore_1.default)();
core.info("after run");
}); });
} }
core.info("before runRestoreAction");
runRestoreAction(); runRestoreAction();
core.info("after runRestoreAction");
exports.default = runRestoreAction; exports.default = runRestoreAction;
core.info("after export default runRestoreAction");
/***/ }), /***/ }),

View file

@ -14,9 +14,15 @@ async function runRestoreAction(): Promise<void> {
`${Inputs.UploadChunkSize} value is passed in the input, this input is invalid for the restore-only action and hence will be ignored` `${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 run(); await run();
core.info("after run");
} }
core.info("before runRestoreAction");
runRestoreAction(); runRestoreAction();
core.info("after runRestoreAction");
export default runRestoreAction; export default runRestoreAction;
core.info("after export default runRestoreAction");