File tree 1 file changed +8
-3
lines changed
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));
357793
357793
const cloudFunctionClient_1 = __webpack_require__(20612);
357794
357794
const cloudFunction_1 = __webpack_require__(63827);
357795
357795
function run() {
357796
- var _a;
357796
+ var _a, _b ;
357797
357797
return __awaiter(this, void 0, void 0, function* () {
357798
357798
try {
357799
357799
// Get inputs
@@ -357832,8 +357832,13 @@ function run() {
357832
357832
});
357833
357833
// Deploy function
357834
357834
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
+ }
357837
357842
}
357838
357843
catch (error) {
357839
357844
core.setFailed(error.message);
You can’t perform that action at this time.
0 commit comments