File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { readFileSync } from "fs" ;
2
+
3
+ export function getProjectIdByAlias ( alias : string ) : string {
4
+ const firebaserc = JSON . parse ( readFileSync ( ".firebaserc" , { encoding : 'utf-8' } ) ) ;
5
+ return firebaserc . projects [ alias ] ;
6
+ }
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import {
36
36
getURLsMarkdownFromChannelDeployResult ,
37
37
postChannelSuccessComment ,
38
38
} from "./postOrUpdateComment" ;
39
+ import { getProjectIdByAlias } from "./getProjectIdByAlias" ;
39
40
40
41
// Inputs defined in action.yml
41
42
const expires = getInput ( "expires" ) ;
@@ -99,7 +100,8 @@ async function run() {
99
100
}
100
101
endGroup ( ) ;
101
102
102
- const hostname = target ? `${ target } .web.app` : `${ projectId } .web.app` ;
103
+ const parsedProjectId = getProjectIdByAlias ( projectId ) || projectId ;
104
+ const hostname = target ? `${ target } .web.app` : `${ parsedProjectId } .web.app` ;
103
105
const url = `https://${ hostname } /` ;
104
106
await finish ( {
105
107
details_url : url ,
You can’t perform that action at this time.
0 commit comments