@@ -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 ,
@@ -55,11 +54,6 @@ const disableComment = getInput("disableComment");
5554async function run ( ) {
5655 const isPullRequest = ! ! context . payload . pull_request ;
5756
58- let finish = ( details : Object ) => console . log ( details ) ;
59- if ( token && isPullRequest ) {
60- finish = await createCheck ( octokit , context ) ;
61- }
62-
6357 try {
6458 startGroup ( "Verifying firebase.json exists" ) ;
6559
@@ -99,17 +93,6 @@ async function run() {
9993 throw Error ( ( deployment as ErrorResult ) . error ) ;
10094 }
10195 endGroup ( ) ;
102-
103- const hostname = target ? `${ target } .web.app` : `${ projectId } .web.app` ;
104- const url = `https://${ hostname } /` ;
105- await finish ( {
106- details_url : url ,
107- conclusion : "success" ,
108- output : {
109- title : `Production deploy succeeded` ,
110- summary : `[${ hostname } ](${ url } )` ,
111- } ,
112- } ) ;
11396 return ;
11497 }
11598
@@ -146,25 +129,8 @@ async function run() {
146129
147130 await postChannelSuccessComment ( octokit , context , deployment , commitId ) ;
148131 }
149-
150- await finish ( {
151- details_url : urls [ 0 ] ,
152- conclusion : "success" ,
153- output : {
154- title : `Deploy preview succeeded` ,
155- summary : getURLsMarkdownFromChannelDeployResult ( deployment ) ,
156- } ,
157- } ) ;
158132 } catch ( e ) {
159133 setFailed ( e . message ) ;
160-
161- await finish ( {
162- conclusion : "failure" ,
163- output : {
164- title : "Deploy preview failed" ,
165- summary : `Error: ${ e . message } ` ,
166- } ,
167- } ) ;
168134 }
169135}
170136
0 commit comments