File tree Expand file tree Collapse file tree 3 files changed +18
-18
lines changed
example/.github/workflows Expand file tree Collapse file tree 3 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 44
44
-b ${GITHUB_REF#refs/heads/} \
45
45
-o upload.json \
46
46
build
47
- echo "::set-output name=build-link::$(jq -r .urls.stagingSha upload.json)"
48
- echo "::set-output name=dashboard-link::$(jq -r .urls.ui upload.json)"
49
- echo "::set-output name=staging-link::$(jq -r .urls.stagingBranch upload.json)"
47
+ echo "::set-output name=build-link::$(jq -r .links.buildLink upload.json)"
48
+ echo "::set-output name=dashboard-link::$(jq -r .links.dashboardLink upload.json)"
49
+ echo "::set-output name=staging-link::$(jq -r .links.stagingLink upload.json)"
50
50
- name : Comment
51
51
uses : peter-evans/commit-comment@v1
52
52
with :
Original file line number Diff line number Diff line change @@ -128,8 +128,8 @@ export class UploadCommand {
128
128
manifestObj . commit . author . email
129
129
} > ${ manifestObj . commit . message . split ( 'Change-Id' ) [ 0 ] . trim ( ) } `
130
130
) ;
131
- console . log ( 'Dashboard:' . blue + ` ${ manifestObj . urls . ui } ` ) ;
132
- console . log ( ' Build:' . blue + ` ${ manifestObj . urls . stagingSha } ` ) ;
133
- console . log ( ' Staging:' . green + ` ${ manifestObj . urls . stagingBranch } ` ) ;
131
+ console . log ( 'Dashboard:' . blue + ` ${ manifestObj . links . dashboardLink } ` ) ;
132
+ console . log ( ' Build:' . blue + ` ${ manifestObj . links . buildLink } ` ) ;
133
+ console . log ( ' Staging:' . green + ` ${ manifestObj . links . stagingLink } ` ) ;
134
134
}
135
135
}
Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ export interface Commit {
44
44
author : GitAuthor ;
45
45
}
46
46
47
- export interface ManifestUrls {
48
- stagingBranch : string ;
49
- stagingSha : string ;
50
- ui : string ;
47
+ export interface ManifestLinks {
48
+ stagingLink : string ;
49
+ buildLink : string ;
50
+ dashboardLink : string ;
51
51
}
52
52
53
53
export interface SerializedManifest {
@@ -156,29 +156,29 @@ export class Manifest {
156
156
157
157
toOutputJSON ( ) {
158
158
return {
159
- urls : this . urls ,
159
+ links : this . links ,
160
160
files : this . files ,
161
161
commit : this . commit ,
162
162
} ;
163
163
}
164
164
165
- get urls ( ) : ManifestUrls {
165
+ get links ( ) : ManifestLinks {
166
166
// TODO: Allow customizing the staging URL using `fileset.yaml` configuration.
167
167
const hostnameSuffix = `fileset-dot-${ this . googleCloudProject } .appspot.com` ;
168
- const stagingShaUrl =
168
+ const buildLink =
169
169
this . site === 'default'
170
170
? `https://${ this . shortSha } -dot-${ hostnameSuffix } `
171
171
: `https://${ this . site } -${ this . shortSha } -dot-${ hostnameSuffix } ` ;
172
172
const branchToken = branchToHostnameToken ( this . branch ) ;
173
- const stagingBranchUrl =
173
+ const stagingLink =
174
174
this . site === 'default'
175
175
? `https://${ branchToken } -dot-${ hostnameSuffix } `
176
176
: `https://${ this . site } -${ branchToken } -dot-${ hostnameSuffix } ` ;
177
- const uiUrl = `https://${ hostnameSuffix } /fileset/sites/${ this . site } /${ this . shortSha } ` ;
177
+ const dashboardLink = `https://${ hostnameSuffix } /fileset/sites/${ this . site } /${ this . shortSha } ` ;
178
178
return {
179
- stagingBranch : stagingBranchUrl ,
180
- stagingSha : stagingShaUrl ,
181
- ui : uiUrl ,
179
+ stagingLink : stagingLink ,
180
+ buildLink : buildLink ,
181
+ dashboardLink : dashboardLink ,
182
182
} ;
183
183
}
184
184
}
You can’t perform that action at this time.
0 commit comments