@@ -87331,26 +87331,6 @@ exports.getOctokit = getOctokit;
87331
87331
87332
87332
});
87333
87333
87334
- // create a check and return a function that updates (completes) it
87335
- async function createCheck(github, context) {
87336
- var _context$payload$pull;
87337
- const check = await github.rest.checks.create({
87338
- ...context.repo,
87339
- name: "Deploy Preview",
87340
- head_sha: (_context$payload$pull = context.payload.pull_request) == null ? void 0 : _context$payload$pull.head.sha,
87341
- status: "in_progress"
87342
- });
87343
- return async details => {
87344
- await github.rest.checks.update({
87345
- ...context.repo,
87346
- check_run_id: check.data.id,
87347
- completed_at: new Date().toISOString(),
87348
- status: "completed",
87349
- ...details
87350
- });
87351
- };
87352
- }
87353
-
87354
87334
// Copyright Joyent, Inc. and other Node contributors.
87355
87335
//
87356
87336
// Permission is hereby granted, free of charge, to any person obtaining a
@@ -93184,10 +93164,6 @@ const firebaseToolsVersion = core.getInput("firebaseToolsVersion");
93184
93164
const disableComment = core.getInput("disableComment");
93185
93165
async function run() {
93186
93166
const isPullRequest = !!github.context.payload.pull_request;
93187
- let finish = details => console.log(details);
93188
- if (token && isPullRequest) {
93189
- finish = await createCheck(octokit, github.context);
93190
- }
93191
93167
try {
93192
93168
core.startGroup("Verifying firebase.json exists");
93193
93169
if (entryPoint !== ".") {
@@ -93219,16 +93195,6 @@ async function run() {
93219
93195
throw Error(deployment.error);
93220
93196
}
93221
93197
core.endGroup();
93222
- const hostname = target ? `${target}.web.app` : `${projectId}.web.app`;
93223
- const url = `https://${hostname}/`;
93224
- await finish({
93225
- details_url: url,
93226
- conclusion: "success",
93227
- output: {
93228
- title: `Production deploy succeeded`,
93229
- summary: `[${hostname}](${url})`
93230
- }
93231
- });
93232
93198
return;
93233
93199
}
93234
93200
const channelId = getChannelId(configuredChannelId, github.context);
@@ -93260,23 +93226,8 @@ async function run() {
93260
93226
const commitId = (_context$payload$pull = github.context.payload.pull_request) == null ? void 0 : _context$payload$pull.head.sha.substring(0, 7);
93261
93227
await postChannelSuccessComment(octokit, github.context, deployment, commitId);
93262
93228
}
93263
- await finish({
93264
- details_url: urls[0],
93265
- conclusion: "success",
93266
- output: {
93267
- title: `Deploy preview succeeded`,
93268
- summary: getURLsMarkdownFromChannelDeployResult(deployment)
93269
- }
93270
- });
93271
93229
} catch (e) {
93272
93230
core.setFailed(e.message);
93273
- await finish({
93274
- conclusion: "failure",
93275
- output: {
93276
- title: "Deploy preview failed",
93277
- summary: `Error: ${e.message}`
93278
- }
93279
- });
93280
93231
}
93281
93232
}
93282
93233
run();
0 commit comments