From 921c58ee44900153bac83601d3028c5715c2c869 Mon Sep 17 00:00:00 2001 From: Sankalp Kotewar <98868223+kotewar@users.noreply.github.com> Date: Tue, 29 Nov 2022 08:06:41 +0000 Subject: [PATCH] Changed logs to warnings --- dist/restore-only/index.js | 4 ++-- src/restore-only.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js index f5f7454..2421a11 100644 --- a/dist/restore-only/index.js +++ b/dist/restore-only/index.js @@ -36762,10 +36762,10 @@ const restore_1 = __importDefault(__webpack_require__(778)); function runRestoreAction() { return __awaiter(this, void 0, void 0, function* () { if (core.getInput(constants_1.Inputs.SaveOnAnyFailure) != "") { - core.info(`Input ${constants_1.Inputs.SaveOnAnyFailure} value is passed in the input, this input will be ignored as you are using restore-only action`); + core.warning(`${constants_1.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(constants_1.Inputs.UploadChunkSize) != "") { - core.info(`Input ${constants_1.Inputs.UploadChunkSize} value is passed in the input, this input will be ignored as you are using restore-only action`); + 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`); } yield (0, restore_1.default)(); }); diff --git a/src/restore-only.ts b/src/restore-only.ts index f7fb338..cf4d5de 100644 --- a/src/restore-only.ts +++ b/src/restore-only.ts @@ -5,13 +5,13 @@ import run from "./restore"; async function runRestoreAction(): Promise { if (core.getInput(Inputs.SaveOnAnyFailure) != "") { - core.info( - `Input ${Inputs.SaveOnAnyFailure} value is passed in the input, this input will be ignored as you are using restore-only action` + 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.info( - `Input ${Inputs.UploadChunkSize} value is passed in the input, this input will be ignored as you are using restore-only action` + core.warning( + `${Inputs.UploadChunkSize} value is passed in the input, this input is invalid for the restore-only action and hence will be ignored` ); } await run();