chore: remove Dockerfile for shared workflow migration #80
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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-databricks | |
| - name: Run and save output | |
| env: | |
| DATABRICKS_CLIENT_ID: ${{ secrets.DATABRICKS_CLIENT_ID }} | |
| DATABRICKS_CLIENT_SECRET: ${{ secrets.DATABRICKS_CLIENT_SECRET }} | |
| BATON_ACCOUNT_ID: ${{ secrets.BATON_ACCOUNT_ID }} | |
| BATON_WORKSPACES: ${{ secrets.BATON_WORKSPACES }} | |
| BATON_WORKSPACE_TOKENS: ${{ secrets.BATON_WORKSPACE_TOKENS }} | |
| 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' |