Skip to content

Commit 61fe039

Browse files
committed
Remove createCheck
1 parent e2eda2e commit 61fe039

2 files changed

Lines changed: 0 additions & 74 deletions

File tree

src/createCheck.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/index.ts

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import {
2323
} from "@actions/core";
2424
import { context, getOctokit } from "@actions/github";
2525
import { existsSync } from "fs";
26-
import { createCheck } from "./createCheck";
2726
import { createGacFile } from "./createGACFile";
2827
import {
2928
deployPreview,
@@ -56,11 +55,6 @@ const force = getInput("force") === "true";
5655
async function run() {
5756
const isPullRequest = !!context.payload.pull_request;
5857

59-
let finish = (details: Object) => console.log(details);
60-
if (token && isPullRequest) {
61-
finish = await createCheck(octokit, context);
62-
}
63-
6458
try {
6559
startGroup("Verifying firebase.json exists");
6660

@@ -101,17 +95,6 @@ async function run() {
10195
throw Error((deployment as ErrorResult).error);
10296
}
10397
endGroup();
104-
105-
const hostname = target ? `${target}.web.app` : `${projectId}.web.app`;
106-
const url = `https://${hostname}/`;
107-
await finish({
108-
details_url: url,
109-
conclusion: "success",
110-
output: {
111-
title: `Production deploy succeeded`,
112-
summary: `[${hostname}](${url})`,
113-
},
114-
});
11598
return;
11699
}
117100

@@ -149,25 +132,8 @@ async function run() {
149132

150133
await postChannelSuccessComment(octokit, context, deployment, commitId);
151134
}
152-
153-
await finish({
154-
details_url: urls[0],
155-
conclusion: "success",
156-
output: {
157-
title: `Deploy preview succeeded`,
158-
summary: getURLsMarkdownFromChannelDeployResult(deployment),
159-
},
160-
});
161135
} catch (e) {
162136
setFailed(e.message);
163-
164-
await finish({
165-
conclusion: "failure",
166-
output: {
167-
title: "Deploy preview failed",
168-
summary: `Error: ${e.message}`,
169-
},
170-
});
171137
}
172138
}
173139

0 commit comments

Comments
 (0)