From d7d0aa53862dc7afde87b4c2a50874bfa51abc72 Mon Sep 17 00:00:00 2001 From: Sumiran Aggarwal Date: Mon, 21 Oct 2019 18:11:55 +0530 Subject: [PATCH] adding deprecation message --- login/lib/main.js | 3 +++ login/src/main.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/login/lib/main.js b/login/lib/main.js index bc1ebb5644a..c4570aec98d 100644 --- a/login/lib/main.js +++ b/login/lib/main.js @@ -49,6 +49,9 @@ function main() { console.log("Login failed. Please check the credentials."); core.setFailed(error); } + finally { + core.warning('This action is moved to azure/login repository, update your workflows to use the new action.'); + } }); } function throwIfError(resultOfToolExecution, errormsg) { diff --git a/login/src/main.ts b/login/src/main.ts index 307597c528a..7a6cf8cdb27 100644 --- a/login/src/main.ts +++ b/login/src/main.ts @@ -32,6 +32,9 @@ async function main() { console.log("Login failed. Please check the credentials."); core.setFailed(error); } + finally { + core.warning('This action is moved to azure/login repository, update your workflows to use the new action.'); + } } function throwIfError(resultOfToolExecution: IExecSyncResult, errormsg?: string) {