Skip to content

Commit db7445c

Browse files
authored
consolidate baton outputs actions
consolidate baton outputs actions
2 parents bdc6013 + bbc5606 commit db7445c

File tree

2 files changed

+11
-40
lines changed

2 files changed

+11
-40
lines changed

.github/workflows/capabilities.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Output config schema
1+
name: Generate capabilities and config schema
22

33
on:
44
push:
55
branches:
66
- main
77

88
jobs:
9-
output-config-schema:
9+
generate_outputs:
1010
if: github.actor != 'github-actions[bot]'
1111
runs-on: ubuntu-latest
1212

@@ -19,17 +19,22 @@ jobs:
1919
- name: Setup Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version-file: 'go.mod'
22+
go-version-file: "go.mod"
2323

2424
- name: Build
2525
run: go build -o connector ./cmd/baton-linear
2626

27-
- name: Run and save output
27+
- name: Run and save config output
2828
run: ./connector config > config_schema.json
2929

30+
- name: Run and save capabilities output
31+
run: ./connector capabilities --api-key "test-token" > baton_capabilities.json
32+
3033
- name: Commit changes
3134
uses: EndBug/add-and-commit@v9
3235
with:
3336
default_author: github_actions
34-
message: 'Updating config schema.'
35-
add: 'config_schema.json'
37+
message: "Updating baton config schema and capabilities."
38+
add: |
39+
config_schema.json
40+
baton_capabilities.json

0 commit comments

Comments
 (0)