@@ -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 ,
@@ -54,11 +53,6 @@ const firebaseToolsVersion = getInput("firebaseToolsVersion");
5453async function run ( ) {
5554 const isPullRequest = ! ! context . payload . pull_request ;
5655
57- let finish = ( details : Object ) => console . log ( details ) ;
58- if ( token && isPullRequest ) {
59- finish = await createCheck ( octokit , context ) ;
60- }
61-
6256 try {
6357 startGroup ( "Verifying firebase.json exists" ) ;
6458
@@ -98,17 +92,6 @@ async function run() {
9892 throw Error ( ( deployment as ErrorResult ) . error ) ;
9993 }
10094 endGroup ( ) ;
101-
102- const hostname = target ? `${ target } .web.app` : `${ projectId } .web.app` ;
103- const url = `https://${ hostname } /` ;
104- await finish ( {
105- details_url : url ,
106- conclusion : "success" ,
107- output : {
108- title : `Production deploy succeeded` ,
109- summary : `[${ hostname } ](${ url } )` ,
110- } ,
111- } ) ;
11295 return ;
11396 }
11497
@@ -144,25 +127,8 @@ async function run() {
144127
145128 await postChannelSuccessComment ( octokit , context , deployment , commitId ) ;
146129 }
147-
148- await finish ( {
149- details_url : urls [ 0 ] ,
150- conclusion : "success" ,
151- output : {
152- title : `Deploy preview succeeded` ,
153- summary : getURLsMarkdownFromChannelDeployResult ( deployment ) ,
154- } ,
155- } ) ;
156130 } catch ( e ) {
157131 setFailed ( e . message ) ;
158-
159- await finish ( {
160- conclusion : "failure" ,
161- output : {
162- title : "Deploy preview failed" ,
163- summary : `Error: ${ e . message } ` ,
164- } ,
165- } ) ;
166132 }
167133}
168134
0 commit comments