-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (35 loc) · 1.27 KB
/
release-pr.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
40
41
name: release-pr
on:
# To allow for manual testing.
workflow_dispatch:
inputs:
version:
type: string
required: true
jobs:
release-pr:
runs-on:
group: databricks-protected-runner-group
labels: linux-ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Change to a new version
run: |
echo "${{ github.event.inputs.version }}" > VERSION
sed -i -E "s/VERSION=(.*)/VERSION=\"${{ github.event.inputs.version }}\"/" install.sh
- name: Create a release pull request
id: cpr
# Version v6.0.5
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e
with:
author: "eng-dev-ecosystem-bot <eng-dev-ecosystem-bot@users.noreply.github.com>"
committer: "eng-dev-ecosystem-bot <eng-dev-ecosystem-bot@users.noreply.github.com>"
token: ${{ secrets.DECO_GITHUB_TOKEN }}
commit-message: Release CLI v${{ github.event.inputs.version }}
body: Release CLI v${{ github.event.inputs.version }}
branch: release-v${{ github.event.inputs.version }}
title: 'Release CLI v${{ github.event.inputs.version }}'
draft: false