File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 7
7
breaking-changes-manifest :
8
8
name : Generate Breaking Changes Manifest
9
9
runs-on : ubuntu-latest
10
- outputs :
11
- breaking-changes : ${{ steps.breakvalidator.outputs.JSON }}
12
10
steps :
13
11
- uses : GitHubSecurityLab/actions-permissions/monitor@v1
14
12
with :
24
22
- name : Install dependencies
25
23
run : go mod download
26
24
- name : Run breaking changes validator
27
- id : breakvalidator
28
25
run : |
29
26
set -e
30
27
go run ./tools/cmd/breakvalidator generate > main.json
51
48
uses : actions/download-artifact@v4
52
49
with :
53
50
name : breaking-changes-manifest
54
- path : main.json
55
51
- name : Run breaking changes validator
56
52
run : |
57
53
set -e
Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ import (
21
21
)
22
22
23
23
type flagData struct {
24
- Type string `json:"type"`
25
- Default string `json:"default"`
26
- Short string `json:"short"`
24
+ Type string `json:"type,omitempty "`
25
+ Default string `json:"default,omitempty "`
26
+ Short string `json:"short,omitempty "`
27
27
}
28
28
29
29
type cmdData struct {
30
- Aliases []string `json:"aliases"`
31
- Flags map [string ]flagData `json:"flags"`
30
+ Aliases []string `json:"aliases,omitempty "`
31
+ Flags map [string ]flagData `json:"flags,omitempty "`
32
32
}
33
33
34
34
func buildRootCmd () * cobra.Command {
You can’t perform that action at this time.
0 commit comments