update-db-repo

To make this workflow work, you need the following three things:

  1. Databricks token or service principle: See this link for creating PAT and this link for creating service principle
  2. Workspace instance name: See this link for more details
  3. Repo id: unique id of the repo that you want to update. You can get this id from opening the git dialog

Screen Shot 2022-04-03 at 3 46 16 PM

Once you have the above, input the above values as below:

  1. Create a GitHub Actions secret with the name "DB_TOKEN" and paste the Databricks token or service principle into it.
  2. Enter the workspace instance name and repo id to the ".github/workflows/update-repo.yml"

Feel free to customize the workflow to make it work for your use case. That is, you can change which events should trigger the workflow or what branch should be updated.