File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -123,3 +123,11 @@ jobs:
123
123
` ` `
124
124
125
125

126
+
127
+ # # Summary
128
+
129
+ The action writes a [GitHub Actions Job
130
+ Summary](https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/)
131
+ with values it identified :
132
+
133
+ 
Original file line number Diff line number Diff line change @@ -32,6 +32,23 @@ async function run(): Promise<void> {
32
32
core . info ( `minimal go version: ${ min } - from go.mod` )
33
33
core . info ( `latest go version: ${ lat } - from https://go.dev/dl/` )
34
34
core . info ( `go version matrix: ${ mat } - from https://go.dev/dl/` )
35
+
36
+ const htmlMat = mat
37
+ . map ( v => `<a href="https://go.dev/doc/go${ v } ">Go ${ v } </a>` )
38
+ . join ( '<br>' )
39
+
40
+ await core . summary
41
+ . addTable ( [
42
+ [
43
+ { data : 'Output' , header : true } ,
44
+ { data : 'Value' , header : true }
45
+ ] ,
46
+ [ 'Module' , `<a href="https://pkg.go.dev/${ name } ">${ name } </a>` ] ,
47
+ [ 'Minimal' , `<a href="https://go.dev/doc/go${ min } ">Go ${ min } </a>` ] ,
48
+ [ 'Latest' , `<a href="https://go.dev/doc/go${ lat } ">Go ${ lat } </a>` ] ,
49
+ [ 'Matrix' , `${ htmlMat } ` ]
50
+ ] )
51
+ . write ( )
35
52
} catch ( error ) {
36
53
core . setFailed ( ( error as Error ) . message )
37
54
}
You can’t perform that action at this time.
0 commit comments