Skip to content

Commit 217556c

Browse files
committed
Run npm run build
1 parent 04469d4 commit 217556c

File tree

1 file changed

+0
-49
lines changed

1 file changed

+0
-49
lines changed

bin/action.min.js

-49
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
@@ -93184,10 +93164,6 @@ const firebaseToolsVersion = core.getInput("firebaseToolsVersion");
9318493164
const disableComment = core.getInput("disableComment");
9318593165
async function run() {
9318693166
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-
}
9319193167
try {
9319293168
core.startGroup("Verifying firebase.json exists");
9319393169
if (entryPoint !== ".") {
@@ -93219,16 +93195,6 @@ async function run() {
9321993195
throw Error(deployment.error);
9322093196
}
9322193197
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-
});
9323293198
return;
9323393199
}
9323493200
const channelId = getChannelId(configuredChannelId, github.context);
@@ -93260,23 +93226,8 @@ async function run() {
9326093226
const commitId = (_context$payload$pull = github.context.payload.pull_request) == null ? void 0 : _context$payload$pull.head.sha.substring(0, 7);
9326193227
await postChannelSuccessComment(octokit, github.context, deployment, commitId);
9326293228
}
93263-
await finish({
93264-
details_url: urls[0],
93265-
conclusion: "success",
93266-
output: {
93267-
title: `Deploy preview succeeded`,
93268-
summary: getURLsMarkdownFromChannelDeployResult(deployment)
93269-
}
93270-
});
9327193229
} catch (e) {
9327293230
core.setFailed(e.message);
93273-
await finish({
93274-
conclusion: "failure",
93275-
output: {
93276-
title: "Deploy preview failed",
93277-
summary: `Error: ${e.message}`
93278-
}
93279-
});
9328093231
}
9328193232
}
9328293233
run();

0 commit comments

Comments
 (0)