@@ -23,7 +23,6 @@ import {
2323} from "@actions/core" ;
2424import { context , getOctokit } from "@actions/github" ;
2525import { existsSync } from "fs" ;
26- import { createCheck } from "./createCheck" ;
2726import { createGacFile } from "./createGACFile" ;
2827import {
2928 deployPreview ,
@@ -56,11 +55,6 @@ const force = getInput("force") === "true";
5655async 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