Update main.js

This commit is contained in:
Balaga Gayatri 2022-06-16 16:15:00 +05:30 committed by GitHub
commit bd142b6a01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -145,7 +145,7 @@ function main() {
}
}
catch (error) {
core.setFailed(`${error} Could not get ID token for authentication. Please make sure to give permissions to id-token in the workflow.`);
core.error(`${error}. Could not get ID token for authentication. Please make sure to give write permissions to id-token in the workflow.`);
}
}
// Attempting Az cli login
@ -215,7 +215,7 @@ function main() {
}
catch (error) {
if (!isAzCLISuccess) {
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."${error}" `);
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 and make sure az is installed on the runner. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"`);