Skip to content

Commit e4e0c6e

Browse files
author
baton-admin[bot]
committed
chore: add generate-baton-metadata workflow via baton-admin
1 parent f719213 commit e4e0c6e

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This file is managed by baton-admin. Do not edit directly.
2+
name: Generate Baton Metadata
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
generate_outputs:
11+
if: github.actor != 'github-actions[bot]'
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
with:
18+
token: ${{ secrets.RELENG_GITHUB_TOKEN }}
19+
20+
- name: Setup Go
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version-file: "go.mod"
24+
25+
- name: Build
26+
run: go build -o connector ./cmd/baton-linear
27+
28+
- name: Run and save config output
29+
run: ./connector config > config_schema.json
30+
31+
- name: Run and save capabilities output
32+
run: ./connector capabilities > baton_capabilities.json
33+
34+
- name: Commit changes
35+
uses: EndBug/add-and-commit@v9
36+
with:
37+
default_author: github_actions
38+
message: "Updating baton config schema and capabilities."
39+
add: |
40+
config_schema.json
41+
baton_capabilities.json

0 commit comments

Comments
 (0)