File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -357793,7 +357793,7 @@ const core = __importStar(__webpack_require__(42186));
357793357793const cloudFunctionClient_1 = __webpack_require__(20612);
357794357794const cloudFunction_1 = __webpack_require__(63827);
357795357795function run() {
357796- var _a;
357796+ var _a, _b ;
357797357797 return __awaiter(this, void 0, void 0, function* () {
357798357798 try {
357799357799 // Get inputs
@@ -357832,8 +357832,13 @@ function run() {
357832357832 });
357833357833 // Deploy function
357834357834 const deployFunctionResponse = yield client.deploy(newFunc);
357835- // Set Cloud Function URL as output
357836- core.setOutput('url', (_a = deployFunctionResponse.response) === null || _a === void 0 ? void 0 : _a.httpsTrigger.url);
357835+ if ((_b = (_a = deployFunctionResponse.response) === null || _a === void 0 ? void 0 : _a.httpsTrigger) === null || _b === void 0 ? void 0 : _b.url) {
357836+ // Set Cloud Function URL as output
357837+ core.setOutput('url', deployFunctionResponse.response.httpsTrigger.url);
357838+ }
357839+ else {
357840+ core.info('No URL set. Only HttpsTrigger Cloud Functions have URL.');
357841+ }
357837357842 }
357838357843 catch (error) {
357839357844 core.setFailed(error.message);
You can’t perform that action at this time.
0 commit comments