File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
dev-packages/size-limit-gh-action Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ async function run() {
210
210
let base ;
211
211
let current ;
212
212
let baseIsNotLatest = false ;
213
+ let baseWorkflowRun ;
213
214
214
215
try {
215
216
const artifacts = await getArtifactsForBranchAndWorkflow ( octokit , {
@@ -219,12 +220,12 @@ async function run() {
219
220
workflowName : `${ process . env . GITHUB_WORKFLOW || '' } ` ,
220
221
} ) ;
221
222
222
- core . info ( `Artifacts: ${ JSON . stringify ( artifacts , null , 2 ) } ` ) ;
223
-
224
223
if ( ! artifacts ) {
225
224
throw new Error ( 'No artifacts found' ) ;
226
225
}
227
226
227
+ baseWorkflowRun = artifacts . workflowRun ;
228
+
228
229
await downloadOtherWorkflowArtifact ( octokit , {
229
230
...repo ,
230
231
artifactName : ARTIFACT_NAME ,
@@ -271,6 +272,10 @@ async function run() {
271
272
272
273
bodyParts . push ( markdownTable ( limit . formatResults ( base , current ) ) ) ;
273
274
275
+ if ( baseWorkflowRun ) {
276
+ bodyParts . push ( `[View base workflow run](${ baseWorkflowRun . html_url } )` ) ;
277
+ }
278
+
274
279
const body = bodyParts . join ( '\r\n' ) ;
275
280
276
281
try {
You can’t perform that action at this time.
0 commit comments