-
Notifications
You must be signed in to change notification settings - Fork 78
33 lines (32 loc) · 1.24 KB
/
git-create-release-branch.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
name: Create Release Branch
run-name: Create Release Branch for ${{ inputs.release_branch_name }}
on:
workflow_dispatch:
inputs:
release_branch_name:
description: "Github Release Branch Name"
required: true
permissions:
contents: write
pull-requests: write
jobs:
create-release-branch:
name: Create Release Branch ${{ inputs.release_branch_name }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
- name: Update application versions
run: |
sed -i "s/$(cat .version)/${{ inputs.release_branch_name}}/g" charts/deps/Chart.yaml charts/deps/values.yaml charts/openmetadata/Chart.yaml charts/openmetadata/README.md charts/openmetadata/templates/tests/test-connection.yaml .version
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
title: 'chore(release): Prepare ${{ inputs.release_branch_name }} release'
body: |
- Update application versions to `${{ inputs.release_branch_name }}`
branch: "release/${{ inputs.release_branch_name }}"
commit-message: 'chore(release): Prepare Branch for release ${{ inputs.release_branch_name }}'