Skip to content

Repo created to store the action in charge to sync Github Repos with Databricks

License

Notifications You must be signed in to change notification settings

neofinancial/databricks-repo-sync-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

databricks-repo-sync-action

Node.js CI

Github action that sync Github with Databricks repos.

Inputs

account

Required

Databricks account. E.g.: my-account in the my-account.cloud.databricks.com domain.

access-token

Required

Databricks access token to be used as Authentication. It is highly recommended to use Github Actions secrets.

branch-tag

Required

Branch or tag to be used on sync. You can use the default GITHUB_REF parameter on many actions for this and the action will parse it automatically.

repo-id

Optional

Databricks repo internal ID. This is optional as long as you specify a repo-path E.g: 123456789012345

repo-path

Optional

Databricks repo path. This is optional as long as you specify a repo-id E.g: /Repos/production/my-repo

Example usage

on:
# Trigger the workflow on push to main branch or tags with "v1." prefix
  push:
    branches:
      - main
  tags:
      - v1.*
jobs:
  sync:
    runs-on: ubuntu-latest
    name: Job to sync Databricks repo when releasing
    steps:
      - name: Sync Repo
        uses: neofinancial/[email protected]
        with:
          account: 'my-databricks-account'
          access-token: ${{ secrets.DATABRICKS_TOKEN }}
          repo-path: '/Repos/production/my-repo'
          branch-tag: ${{ github.ref }}

About

Repo created to store the action in charge to sync Github Repos with Databricks

Resources

License

Stars

Watchers

Forks

Packages

No packages published