@@ -23,7 +23,6 @@ import {
23
23
} from "@actions/core" ;
24
24
import { context , getOctokit } from "@actions/github" ;
25
25
import { existsSync } from "fs" ;
26
- import { createCheck } from "./createCheck" ;
27
26
import { createGacFile } from "./createGACFile" ;
28
27
import {
29
28
deployPreview ,
@@ -55,11 +54,6 @@ const disableComment = getInput("disableComment");
55
54
async function run ( ) {
56
55
const isPullRequest = ! ! context . payload . pull_request ;
57
56
58
- let finish = ( details : Object ) => console . log ( details ) ;
59
- if ( token && isPullRequest ) {
60
- finish = await createCheck ( octokit , context ) ;
61
- }
62
-
63
57
try {
64
58
startGroup ( "Verifying firebase.json exists" ) ;
65
59
@@ -99,17 +93,6 @@ async function run() {
99
93
throw Error ( ( deployment as ErrorResult ) . error ) ;
100
94
}
101
95
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
- } ) ;
113
96
return ;
114
97
}
115
98
@@ -146,25 +129,8 @@ async function run() {
146
129
147
130
await postChannelSuccessComment ( octokit , context , deployment , commitId ) ;
148
131
}
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
- } ) ;
158
132
} catch ( e ) {
159
133
setFailed ( e . message ) ;
160
-
161
- await finish ( {
162
- conclusion : "failure" ,
163
- output : {
164
- title : "Deploy preview failed" ,
165
- summary : `Error: ${ e . message } ` ,
166
- } ,
167
- } ) ;
168
134
}
169
135
}
170
136
0 commit comments