cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Running notebook from another notebook does not work when running notebook from github actions

Ullsokk
New Contributor III

I have a setup-notebook that users %run to run a series of notebooks. The notebook is in the root folder of my repo. In a subfolder I have several notebooks I want to run. If I run the notebook in databricks, the relative paths work (%run "./subfolder/some notebook"). But when I try to run this setup-notebook from github actions, I get the following error: Notebook not found: tmp/databricks-github-actions/24245-645-tr-rtgtr-3443/subfolder/some notebook.

4 REPLIES 4

Ajay-Pandey
Esteemed Contributor III

Hi @Stian Arntsen​ I think for now databricks does not support notebook run from github action.

Ajay Kumar Pandey

Ullsokk
New Contributor III

I can run other notebooks just fine from github actions. But running a notebook that runs another notebook doesn't seem to work for me.

Hubert-Dudek
Esteemed Contributor III

It seems that the directory is different under GitHub actions. Not sure what exactly mentioned GitHub actions do and which one it is. Maybe you can share GitHub action used.

Ullsokk
New Contributor III
name: Setup
on: 
  workflow_dispatch:
jobs:
  run-notebooks:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Run a databricks notebook
        uses: databricks/run-notebook@v0
        with:
         local-notebook-path: Setup.sql
         databricks-host: https://myhost.cloud.databricks.com/
         databricks-token: ${{ secrets.DATABRICKS_TOKEN }}
         git-commit: ${{ github.event.pull_request.head.sha }}
         existing-cluster-id : myclusterid

This is the yml file running from github actions.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group