Skip to content

update-cli-version #133

update-cli-version

update-cli-version #133

name: update-cli-version
on:
workflow_dispatch:
inputs:
version:
type: string
required: true
jobs:
update-cli-version:
runs-on:
group: databricks-protected-runner-group
labels: linux-ubuntu-latest
permissions:
id-token: write
contents: read
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
fetch-depth: 0
- name: Install JQ
run: sudo apt-get install jq
- name: Update CLI version
run: jq '.cli.version = "${{ github.event.inputs.version }}"' packages/databricks-vscode/package.json --indent 4 > tmp.json && mv tmp.json packages/databricks-vscode/package.json
- name: Create a pull request
uses: peter-evans/create-pull-request@4e1beaa7521e8b457b572c090b25bd3db56bf1c5 # v5.0.3
with:
token: ${{ secrets.DECO_GITHUB_TOKEN }}
commit-message: Update Databricks CLI to v${{ github.event.inputs.version }}
body: Update Databricks CLI to v${{ github.event.inputs.version }}
committer: GitHub <noreply@github.com>
branch: update-cli-v${{ github.event.inputs.version }}
title: "Update Databricks CLI to v${{ github.event.inputs.version }}"
draft: false