File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,16 @@ const prettyCircleName = (workflow) => {
24
24
}
25
25
} ;
26
26
27
- const prettyGitHubActionsName = ( workflow ) => {
27
+ const prettyGitHubActionsNameAndIcon = ( workflow ) => {
28
28
switch ( workflow ) {
29
29
case 'linux-publish' :
30
- return 'Linux' ;
30
+ return { name : 'Linux' , icon : 'linux' } ;
31
31
case 'macos-publish' :
32
- return 'macOS' ;
32
+ return { name : 'macOS' , icon : 'apple' } ;
33
+ case 'windows-publish' :
34
+ return { name : 'Windows' , icon : 'windows' } ;
33
35
default :
34
- return workflow ;
36
+ return { name : workflow , icon : 'github' } ;
35
37
}
36
38
} ;
37
39
@@ -70,11 +72,12 @@ router.get(
70
72
} ) ;
71
73
}
72
74
for ( const githubActionsBuild of build . ciBuilds . githubactions ?? [ ] ) {
75
+ const { name, icon } = prettyGitHubActionsNameAndIcon ( githubActionsBuild . buildJob ) ;
73
76
ciBuilds . push ( {
74
- name : prettyGitHubActionsName ( githubActionsBuild . buildJob ) ,
77
+ name,
78
+ icon,
75
79
url : `https://github.com/electron/electron/actions/runs/${ githubActionsBuild . buildId } ` ,
76
80
status : githubActionsBuild . status ,
77
- icon : githubActionsBuild . buildJob . includes ( 'linux' ) ? 'linux' : 'apple' ,
78
81
} ) ;
79
82
}
80
83
for ( const appveyorBuild of build . ciBuilds . appveyor ?? [ ] ) {
You can’t perform that action at this time.
0 commit comments