Available for Enterprise Edition only.
Using PBT with GitHub Actions
Prophecy Build Tool (PBT) can be integrated with GitHub Actions to:- validate pipelines
- build artifacts (
.jar/.whl) - run unit tests
- deploy pipelines to Databricks
View an Example GitHub repository.
Prerequisites
- A Prophecy project hosted in a GitHub repository
- A Databricks workspace for deployment
Configuration
Environment variables
PBT requires the following:DATABRICKS_HOSTDATABRICKS_TOKEN
Settings → Secrets → Actions → New repository secretThen reference it in your workflow:
Example workflow (deploy on push to prod)
This workflow:- runs on every push to
prod - validates, builds, and tests pipelines
- deploys artifacts to Databricks
Workflow definition
What this workflow does
- Triggers on pushes to the
prodbranch - Sets required environment variables for Databricks access
- Installs Java, Python, and PBT dependencies
- Validates pipeline syntax (
pbt validate) - Builds pipelines into
.jar/.whlartifacts (pbt build) - Runs unit tests (
pbt test) - Deploys artifacts and jobs to Databricks (
pbt deploy)- Uploads artifacts referenced in
databricks-job.json - Creates or updates Databricks jobs
- Deploys pipeline configurations to DBFS if defined
- Uploads artifacts referenced in

