Skip to content

Commit 8c4984d

Browse files
author
mbburch
committed
Add output_config.yaml
1 parent 453a4da commit 8c4984d

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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'

0 commit comments

Comments
 (0)