dbConnect() fails with "Invalid DATABRICKS_AUTH_TYPE value 'databricks-cli'" #326
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
| # Workflow derived from https://github.com/r-lib/actions/tree/master/examples | |
| # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
| on: | |
| issue_comment: | |
| types: [created] | |
| name: Commands | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| document: | |
| if: ${{ github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && startsWith(github.event.comment.body, '/document') }} | |
| name: document | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - uses: r-lib/actions/pr-fetch@d3c5be51b12e724e68f33216ca3c148b66d5f0b6 # v2.12.1 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: r-lib/actions/setup-r@d3c5be51b12e724e68f33216ca3c148b66d5f0b6 # v2.12.1 | |
| with: | |
| use-public-rspm: true | |
| - uses: r-lib/actions/setup-r-dependencies@d3c5be51b12e724e68f33216ca3c148b66d5f0b6 # v2.12.1 | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| extra-packages: any::roxygen2 | |
| - name: Document | |
| run: Rscript -e 'roxygen2::roxygenise()' | |
| - name: Create documentation patch | |
| run: | | |
| git diff --binary -- man NAMESPACE > document.patch | |
| if [ ! -s document.patch ]; then | |
| echo "No documentation changes generated." > document.patch | |
| fi | |
| shell: bash | |
| - name: Upload documentation patch | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: document-patch-${{ github.event.issue.number }} | |
| path: document.patch | |
| if-no-files-found: error | |
| style: | |
| if: ${{ github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && startsWith(github.event.comment.body, '/style') }} | |
| name: style | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - uses: r-lib/actions/pr-fetch@d3c5be51b12e724e68f33216ca3c148b66d5f0b6 # v2.12.1 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: r-lib/actions/setup-r@d3c5be51b12e724e68f33216ca3c148b66d5f0b6 # v2.12.1 | |
| with: | |
| use-public-rspm: true | |
| - uses: r-lib/actions/setup-r-dependencies@d3c5be51b12e724e68f33216ca3c148b66d5f0b6 # v2.12.1 | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| extra-packages: any::styler | |
| - name: Style | |
| run: Rscript -e 'styler::style_pkg()' | |
| - name: Create style patch | |
| run: | | |
| git diff --binary -- '*.R' > style.patch | |
| if [ ! -s style.patch ]; then | |
| echo "No style changes generated." > style.patch | |
| fi | |
| shell: bash | |
| - name: Upload style patch | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: style-patch-${{ github.event.issue.number }} | |
| path: style.patch | |
| if-no-files-found: error |