Skip to content

Commit 83ede9d

Browse files
committed
Run npm run build
1 parent 567dfa8 commit 83ede9d

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
@@ -93181,10 +93161,6 @@ const target = core.getInput("target");
9318193161
const firebaseToolsVersion = core.getInput("firebaseToolsVersion");
9318293162
async function run() {
9318393163
const isPullRequest = !!github.context.payload.pull_request;
93184-
let finish = details => console.log(details);
93185-
if (token && isPullRequest) {
93186-
finish = await createCheck(octokit, github.context);
93187-
}
9318893164
try {
9318993165
core.startGroup("Verifying firebase.json exists");
9319093166
if (entryPoint !== ".") {
@@ -93216,16 +93192,6 @@ async function run() {
9321693192
throw Error(deployment.error);
9321793193
}
9321893194
core.endGroup();
93219-
const hostname = target ? `${target}.web.app` : `${projectId}.web.app`;
93220-
const url = `https://${hostname}/`;
93221-
await finish({
93222-
details_url: url,
93223-
conclusion: "success",
93224-
output: {
93225-
title: `Production deploy succeeded`,
93226-
summary: `[${hostname}](${url})`
93227-
}
93228-
});
9322993195
return;
9323093196
}
9323193197
const channelId = getChannelId(configuredChannelId, github.context);
@@ -93254,23 +93220,8 @@ async function run() {
9325493220
const commitId = (_context$payload$pull = github.context.payload.pull_request) == null ? void 0 : _context$payload$pull.head.sha.substring(0, 7);
9325593221
await postChannelSuccessComment(octokit, github.context, deployment, commitId);
9325693222
}
93257-
await finish({
93258-
details_url: urls[0],
93259-
conclusion: "success",
93260-
output: {
93261-
title: `Deploy preview succeeded`,
93262-
summary: getURLsMarkdownFromChannelDeployResult(deployment)
93263-
}
93264-
});
9326593223
} catch (e) {
9326693224
core.setFailed(e.message);
93267-
await finish({
93268-
conclusion: "failure",
93269-
output: {
93270-
title: "Deploy preview failed",
93271-
summary: `Error: ${e.message}`
93272-
}
93273-
});
9327493225
}
9327593226
}
9327693227
run();

0 commit comments

Comments
 (0)