Running notebook from another notebook does not work when running notebook from github actions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2023 06:36 AM
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.
- Labels:
-
Github
-
Github actions
-
Notebook
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2023 08:41 AM
Hi @Stian Arntsen I think for now databricks does not support notebook run from github action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2023 12:15 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2023 08:44 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2023 12:17 PM
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.

