This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
👷 Change trigger #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: databricks-cicd | |
on: | |
push: | |
branches: [main] | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
# Name of the environment you created | |
environment: test | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
# Install databricks CLI as per https://docs.databricks.com/dev-tools/cli/databricks-cli.html | |
- name: Install databricks CLI | |
run: | | |
curl -fsSL https://raw.githubusercontent.com/databricks/setup-cli/main/install.sh | sh | |
# List the databricks repos within the workspace whose credentials | |
# are stored in the Github Environment "my-environment" | |
- name: List databricks repos | |
env: | |
# Note the host is an "environment variable" in the Github Environment | |
# while the token is a "secret" in the Github Environment | |
DATABRICKS_HOST: ${{ vars.DATABRICKS_HOST }} | |
DATABRICKS_TOKEN: ${{ secrets.DATABRICKS_TOKEN }} | |
run: | | |
databricks repos list |