From 217556c82be964c1fd1ab78e7b764253e34346cf Mon Sep 17 00:00:00 2001 From: Masahiro Furudate <178inaba.git@gmail.com> Date: Sun, 25 Feb 2024 17:51:48 +0900 Subject: [PATCH] Run `npm run build` --- bin/action.min.js | 49 ----------------------------------------------- 1 file changed, 49 deletions(-) diff --git a/bin/action.min.js b/bin/action.min.js index 8324beb..34e572a 100644 --- a/bin/action.min.js +++ b/bin/action.min.js @@ -87331,26 +87331,6 @@ exports.getOctokit = getOctokit; }); -// create a check and return a function that updates (completes) it -async function createCheck(github, context) { - var _context$payload$pull; - const check = await github.rest.checks.create({ - ...context.repo, - name: "Deploy Preview", - head_sha: (_context$payload$pull = context.payload.pull_request) == null ? void 0 : _context$payload$pull.head.sha, - status: "in_progress" - }); - return async details => { - await github.rest.checks.update({ - ...context.repo, - check_run_id: check.data.id, - completed_at: new Date().toISOString(), - status: "completed", - ...details - }); - }; -} - // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -93184,10 +93164,6 @@ const firebaseToolsVersion = core.getInput("firebaseToolsVersion"); const disableComment = core.getInput("disableComment"); async function run() { const isPullRequest = !!github.context.payload.pull_request; - let finish = details => console.log(details); - if (token && isPullRequest) { - finish = await createCheck(octokit, github.context); - } try { core.startGroup("Verifying firebase.json exists"); if (entryPoint !== ".") { @@ -93219,16 +93195,6 @@ async function run() { throw Error(deployment.error); } core.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; } const channelId = getChannelId(configuredChannelId, github.context); @@ -93260,23 +93226,8 @@ async function run() { const commitId = (_context$payload$pull = github.context.payload.pull_request) == null ? void 0 : _context$payload$pull.head.sha.substring(0, 7); await postChannelSuccessComment(octokit, github.context, deployment, commitId); } - await finish({ - details_url: urls[0], - conclusion: "success", - output: { - title: `Deploy preview succeeded`, - summary: getURLsMarkdownFromChannelDeployResult(deployment) - } - }); } catch (e) { core.setFailed(e.message); - await finish({ - conclusion: "failure", - output: { - title: "Deploy preview failed", - summary: `Error: ${e.message}` - } - }); } } run();