GitHub Action that imports Databricks notebooks from a local path into the Databricks worspace
Перейти к файлу
Vianey Juarez 9c4e8ada8c
Docs: Update Readme.md
2021-09-30 16:29:00 -05:00
.github/workflows Fix: sample cd.yml 2021-09-30 16:17:30 -05:00
notebooks Feat: added sample notebook 2021-09-30 14:05:27 -05:00
.gitignore Initial commit 2021-09-30 15:56:23 +00:00
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md committed 2021-09-30 08:56:34 -07:00
LICENSE LICENSE committed 2021-09-30 08:56:35 -07:00
README.md Docs: Update Readme.md 2021-09-30 16:29:00 -05:00
SECURITY.md SECURITY.md committed 2021-09-30 08:56:36 -07:00
SUPPORT.md SUPPORT.md committed 2021-09-30 08:56:37 -07:00
action.yml Update action.yml 2021-09-30 15:47:24 -05:00

README.md

Databricks Import Directory Action

GitHub Action that imports the files from a local path into a Databricks workspace. Build

When to use

This action is useful when you need to import a directory to the Databricks workspace, for example, when you want to import notebooks into a specific path. Only directories and files with the extensions .scala, .py, .sql, .r, .R, .ipynb are imported.

How it works

The GitHub Action works with the 'import_dir' command from the Databricks Workspace Cli

Getting Started

Prerequisites

  • Make sure you have a directory in your repo you want to import into Databricks
  • Make sure you have installed the Databricks Cli
  • Make sure you have a Databricks Access Token. It can be a PAT, or if you're working with Azure Databricks, it can be an AAD Token.

Note: You can find both sample workflows in this repository.

Usage

steps:
    - name: databricks-import-directory
      uses: microsoft/databricks-import-directory@v1.0.0
      with:
        databricks-host: https://<instance-name>.cloud.databricks.com
        databricks-token: token
        local-path: ./my-local-path
        remote-path: /my-remote-path

Inputs

Name Description Required Default value
databricks-host Workspace URL, with the format https://.cloud.databricks.com true NA
databricks-token Databricks token, it can be a PAT or an AAD Token true NA
local-path Path of the directory you want to import true NA
remote-path Path of the directory inside Databricks workspace where you want the files to land true NA

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.