โ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.
โ01-26-2023 08:41 AM
Hi @Stian Arntsenโ I think for now databricks does not support notebook run from github action.
โ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.
โ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.
โ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.
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