-
Notifications
You must be signed in to change notification settings - Fork 21
38 lines (31 loc) · 1.12 KB
/
update-cli-version.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
name: update-cli-version
on:
workflow_dispatch:
inputs:
version:
type: string
required: true
jobs:
update-cli-version:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
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@v5
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