Skip to content

Commit

Permalink
Remove createCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
178inaba committed Oct 1, 2024
1 parent 7a831e3 commit 04469d4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 74 deletions.
40 changes: 0 additions & 40 deletions src/createCheck.ts

This file was deleted.

34 changes: 0 additions & 34 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
} from "@actions/core";
import { context, getOctokit } from "@actions/github";
import { existsSync } from "fs";
import { createCheck } from "./createCheck";
import { createGacFile } from "./createGACFile";
import {
deployPreview,
Expand Down Expand Up @@ -55,11 +54,6 @@ const disableComment = getInput("disableComment");
async function run() {
const isPullRequest = !!context.payload.pull_request;

let finish = (details: Object) => console.log(details);
if (token && isPullRequest) {
finish = await createCheck(octokit, context);
}

try {
startGroup("Verifying firebase.json exists");

Expand Down Expand Up @@ -99,17 +93,6 @@ async function run() {
throw Error((deployment as ErrorResult).error);
}
endGroup();

const hostname = target ? `${target}.web.app` : `${projectId}.web.app`;
const url = `https://${hostname}/`;
await finish({
details_url: url,
conclusion: "success",
output: {
title: `Production deploy succeeded`,
summary: `[${hostname}](${url})`,
},
});
return;
}

Expand Down Expand Up @@ -146,25 +129,8 @@ async function run() {

await postChannelSuccessComment(octokit, context, deployment, commitId);
}

await finish({
details_url: urls[0],
conclusion: "success",
output: {
title: `Deploy preview succeeded`,
summary: getURLsMarkdownFromChannelDeployResult(deployment),
},
});
} catch (e) {
setFailed(e.message);

await finish({
conclusion: "failure",
output: {
title: "Deploy preview failed",
summary: `Error: ${e.message}`,
},
});
}
}

Expand Down

0 comments on commit 04469d4

Please sign in to comment.