File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Output config schema
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ output-config-schema :
10+ if : github.actor != 'github-actions[bot]'
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v4
16+ with :
17+ token : ${{ secrets.RELENG_GITHUB_TOKEN }}
18+
19+ - name : Setup Go
20+ uses : actions/setup-go@v5
21+ with :
22+ go-version-file : ' go.mod'
23+
24+ - name : Build
25+ run : go build -o connector ./cmd/baton-github
26+
27+ - name : Run and save output
28+ # Sort the fields array by name to ensure consistent ordering
29+ run : |
30+ ./connector config | jq '{ fields: (.fields | sort_by(.name)) }' > config_schema.json
31+
32+ - name : Commit changes
33+ uses : EndBug/add-and-commit@v9
34+ with :
35+ default_author : github_actions
36+ message : ' Updating config schema.'
37+ add : ' config_schema.json'
You can’t perform that action at this time.
0 commit comments