Skip to content

chore: update release workflow via baton-admin #41

chore: update release workflow via baton-admin

chore: update release workflow via baton-admin #41

Workflow file for this run

name: Generate connector capabilities
on:
push:
branches:
- main
jobs:
calculate-capabilities:
env:
BATON_DSN: server=127.0.0.1;user id=sa;password=devP@ssw0rd;port=1433
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.RELENG_GITHUB_TOKEN }}
- name: Run Docker Compose as a Daemon (to start sql server)
run: docker compose -f ./docker-compose.yml up --detach
- name: Create another database
run: docker exec -t baton-sql-server-db-1 /opt/mssql-tools18/bin/sqlcmd -C -S localhost -U SA -P 'devP@ssw0rd' -Q 'create database [space test 1]'
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build
run: go build -o connector ./cmd/baton-sql-server
- name: Run and save output
env:
BATON_DSN: server=127.0.0.1;user id=sa;password=devP@ssw0rd;port=1433
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'