-
Notifications
You must be signed in to change notification settings - Fork 10
/
action.yml
39 lines (32 loc) · 1.01 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Setup Databricks CLI
description: |
Download the latest Databricks CLI snapshot build and add it to $PATH.
inputs:
version:
description: 'The version of the Databricks CLI to download (defaults to latest).'
required: false
snapshot:
description: 'Install a snapshot build (set to "true" to enable).'
required: false
branch:
description: '(snapshot build only) The branch to download the snapshot build for.'
required: false
runs:
using: "composite"
steps:
- name: Download snapshot build
if: ${{ inputs.snapshot == 'true' }}
shell: bash
run: bash $GITHUB_ACTION_PATH/setup_snapshot.sh
env:
GH_REPO: databricks/cli
BRANCH: ${{ inputs.branch }}
- name: Download release build
if: ${{ inputs.snapshot != 'true' }}
shell: bash
run: bash $GITHUB_ACTION_PATH/setup_release.sh
env:
VERSION: ${{ inputs.version }}
- name: Get Databricks CLI version
shell: bash
run: databricks version --output json