From 1f63701bf3e6892515f1b7ce2d2bf1708b46beaf Mon Sep 17 00:00:00 2001 From: Balaga Gayatri Date: Wed, 19 Jan 2022 22:58:27 +0530 Subject: [PATCH] Adding az installation requirement to login error response (release PR) (#199) * Update main.ts * Update main.js --- lib/main.js | 4 ++-- src/main.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/main.js b/lib/main.js index e43867f03..42ab22d5b 100644 --- a/lib/main.js +++ b/lib/main.js @@ -213,10 +213,10 @@ function main() { } catch (error) { if (!isAzCLISuccess) { - core.setFailed("Az CLI Login failed. Please check the credentials. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"); + core.setFailed("Az CLI Login failed. Please check the credentials and make sure az is installed on the runner. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"); } else { - core.setFailed(`Azure PowerShell Login failed. Please check the credentials. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"`); + core.setFailed(`Azure PowerShell Login failed. Please check the credentials and make sure az is installed on the runner. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"`); } } finally { diff --git a/src/main.ts b/src/main.ts index 7de834fb0..616b3ddc1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -208,10 +208,10 @@ async function main() { } catch (error) { if (!isAzCLISuccess) { - core.setFailed("Az CLI Login failed. Please check the credentials. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"); + core.setFailed("Az CLI Login failed. Please check the credentials and make sure az is installed on the runner. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"); } else { - core.setFailed(`Azure PowerShell Login failed. Please check the credentials. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"`); + core.setFailed(`Azure PowerShell Login failed. Please check the credentials and make sure az is installed on the runner. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"`); } } finally {