Skip to content

Commit aa36988

Browse files
chore: build dist deploy-cloud-functions (#12)
1 parent 3204a77 commit aa36988

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

dist/index.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -357793,7 +357793,7 @@ const core = __importStar(__webpack_require__(42186));
357793357793
const cloudFunctionClient_1 = __webpack_require__(20612);
357794357794
const cloudFunction_1 = __webpack_require__(63827);
357795357795
function 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);

0 commit comments

Comments
 (0)