Skip to content

Commit bbfb49c

Browse files
authored
consolidate baton outputs actions
consolidate baton outputs actions
2 parents cf18f4b + 72d24fd commit bbfb49c

File tree

2 files changed

+12
-41
lines changed

2 files changed

+12
-41
lines changed
Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
name: Output connector capabilities
1+
name: Generate capabilities and config schema
22

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

88
jobs:
9-
calculate-capabilities:
9+
generate_outputs:
10+
if: github.actor != 'github-actions[bot]'
1011
runs-on: ubuntu-latest
1112

1213
steps:
@@ -18,12 +19,15 @@ jobs:
1819
- name: Setup Go
1920
uses: actions/setup-go@v5
2021
with:
21-
go-version-file: 'go.mod'
22+
go-version-file: "go.mod"
2223

2324
- name: Build
2425
run: go build -o connector ./cmd/baton-github
2526

26-
- name: Run and save output
27+
- name: Run and save config output
28+
run: ./connector config > config_schema.json
29+
30+
- name: Run and save capabilities output
2731
env:
2832
BATON_TOKEN: test
2933
run: ./connector --sync-secrets capabilities > baton_capabilities.json
@@ -32,5 +36,7 @@ jobs:
3236
uses: EndBug/add-and-commit@v9
3337
with:
3438
default_author: github_actions
35-
message: 'Updating baton capabilities.'
36-
add: 'baton_capabilities.json'
39+
message: "Updating baton config schema and capabilities."
40+
add: |
41+
config_schema.json
42+
baton_capabilities.json

.github/workflows/output_config.yaml

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)