Skip to content

Commit 05415b8

Browse files
chore: build dist deploy-appengine (#29)
1 parent 190e2c1 commit 05415b8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dist/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2652,7 +2652,7 @@ function run() {
26522652
// Fail if no Project Id is provided if not already set.
26532653
const projectIdSet = yield setupGcloud.isProjectIdSet();
26542654
if (!projectIdSet && projectId === '' && serviceAccountKey === '') {
2655-
core.setFailed('No project Id provided.');
2655+
throw new Error('No project Id provided. Ensure you have either project_id and/or credentials inputs are set.');
26562656
}
26572657
// Authenticate gcloud SDK.
26582658
if (serviceAccountKey) {
@@ -2664,7 +2664,7 @@ function run() {
26642664
}
26652665
const authenticated = yield setupGcloud.isAuthenticated();
26662666
if (!authenticated) {
2667-
core.setFailed('Error authenticating the Cloud SDK.');
2667+
throw new Error('Error authenticating the Cloud SDK.');
26682668
}
26692669
const toolCommand = setupGcloud.getToolCommand();
26702670
// Create app engine gcloud cmd.
@@ -11482,9 +11482,13 @@ function isAuthenticated() {
1148211482
const stdout = (data) => {
1148311483
output += data.toString();
1148411484
};
11485+
const stderr = (data) => {
11486+
output += data.toString();
11487+
};
1148511488
const options = {
1148611489
listeners: {
1148711490
stdout,
11491+
stderr,
1148811492
},
1148911493
};
1149011494
const toolCommand = getToolCommand();

0 commit comments

Comments
 (0)