Skip to content

Commit

Permalink
CHORE - Add workflow to create release PR automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
tutte committed Oct 31, 2024
1 parent f7b9ee5 commit 71accc1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/git-create-release-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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: ${{ inputs.release_branch_name }}
commit-message: 'chore(release): Prepare Branch for release ${{ inputs.release_branch_name }}'
1 change: 1 addition & 0 deletions .version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.5.9

0 comments on commit 71accc1

Please sign in to comment.