Skip to content

Commit ee3eb96

Browse files
committed
Run npm run build
1 parent 61fe039 commit ee3eb96

File tree

1 file changed

+0
-49
lines changed

1 file changed

+0
-49
lines changed

bin/action.min.js

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -87331,26 +87331,6 @@ exports.getOctokit = getOctokit;
8733187331

8733287332
});
8733387333

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-
8735487334
// Copyright Joyent, Inc. and other Node contributors.
8735587335
//
8735687336
// Permission is hereby granted, free of charge, to any person obtaining a
@@ -93190,10 +93170,6 @@ const disableComment = core.getInput("disableComment");
9319093170
const force = core.getInput("force") === "true";
9319193171
async function run() {
9319293172
const isPullRequest = !!github.context.payload.pull_request;
93193-
let finish = details => console.log(details);
93194-
if (token && isPullRequest) {
93195-
finish = await createCheck(octokit, github.context);
93196-
}
9319793173
try {
9319893174
core.startGroup("Verifying firebase.json exists");
9319993175
if (entryPoint !== ".") {
@@ -93226,16 +93202,6 @@ async function run() {
9322693202
throw Error(deployment.error);
9322793203
}
9322893204
core.endGroup();
93229-
const hostname = target ? `${target}.web.app` : `${projectId}.web.app`;
93230-
const url = `https://${hostname}/`;
93231-
await finish({
93232-
details_url: url,
93233-
conclusion: "success",
93234-
output: {
93235-
title: `Production deploy succeeded`,
93236-
summary: `[${hostname}](${url})`
93237-
}
93238-
});
9323993205
return;
9324093206
}
9324193207
const channelId = getChannelId(configuredChannelId, github.context);
@@ -93268,23 +93234,8 @@ async function run() {
9326893234
const commitId = (_context$payload$pull = github.context.payload.pull_request) == null ? void 0 : _context$payload$pull.head.sha.substring(0, 7);
9326993235
await postChannelSuccessComment(octokit, github.context, deployment, commitId);
9327093236
}
93271-
await finish({
93272-
details_url: urls[0],
93273-
conclusion: "success",
93274-
output: {
93275-
title: `Deploy preview succeeded`,
93276-
summary: getURLsMarkdownFromChannelDeployResult(deployment)
93277-
}
93278-
});
9327993237
} catch (e) {
9328093238
core.setFailed(e.message);
93281-
await finish({
93282-
conclusion: "failure",
93283-
output: {
93284-
title: "Deploy preview failed",
93285-
summary: `Error: ${e.message}`
93286-
}
93287-
});
9328893239
}
9328993240
}
9329093241
run();

0 commit comments

Comments
 (0)