Skip to content

Commit 95a933f

Browse files
author
baton-admin[bot]
committed
chore: add generate-baton-metadata workflow via baton-admin
1 parent 94e78db commit 95a933f

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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-privx
27+
28+
- name: Run and save capabilities output
29+
run: ./connector capabilities > baton_capabilities.json
30+
31+
- name: Commit changes
32+
uses: EndBug/add-and-commit@v9
33+
with:
34+
default_author: github_actions
35+
message: "Updating baton capabilities."
36+
add: "baton_capabilities.json"

0 commit comments

Comments
 (0)