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 77 breaking-changes-manifest :
88 name : Generate Breaking Changes Manifest
99 runs-on : ubuntu-latest
10- outputs :
11- breaking-changes : ${{ steps.breakvalidator.outputs.JSON }}
1210 steps :
1311 - uses : GitHubSecurityLab/actions-permissions/monitor@v1
1412 with :
2422 - name : Install dependencies
2523 run : go mod download
2624 - name : Run breaking changes validator
27- id : breakvalidator
2825 run : |
2926 set -e
3027 go run ./tools/cmd/breakvalidator generate > main.json
5148 uses : actions/download-artifact@v4
5249 with :
5350 name : breaking-changes-manifest
54- path : main.json
5551 - name : Run breaking changes validator
5652 run : |
5753 set -e
Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ import (
2121)
2222
2323type 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 "`
2727}
2828
2929type 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 "`
3232}
3333
3434func buildRootCmd () * cobra.Command {
You can’t perform that action at this time.
0 commit comments