Skip to content

Commit

Permalink
Merge pull request #28 from ConductorOne/ggreer/capabilities
Browse files Browse the repository at this point in the history
Add github action to generate connector capabilities.
  • Loading branch information
ggreer authored Jul 9, 2024
2 parents b7bded4 + 7f82333 commit dc92670
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/capabilities.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Generate connector capabilities

on:
push:
branches:
- main

jobs:
calculate-capabilities:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.RELENG_GITHUB_TOKEN }}

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Build
run: go build -o connector ./cmd/baton-slack

- name: Run and save output
run: ./connector capabilities > baton_capabilities.json

- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: 'Updating baton capabilities.'
add: 'baton_capabilities.json'

0 comments on commit dc92670

Please sign in to comment.