mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-13 19:11:00 +00:00
chore(CI): Workflow that will take care of Release Version updates (#16429)
Co-authored-by: Matias Puerta <mati.puerta@gmail.com>
This commit is contained in:
parent
f0cda8464f
commit
6688c086c7
45
.github/workflows/git-create-release-branch.yml
vendored
Normal file
45
.github/workflows/git-create-release-branch.yml
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
name: Create Release Branches
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
release_branch_name:
|
||||
description: "Github Release Branch Name"
|
||||
required: true
|
||||
base_branch_name:
|
||||
description: "Base Branch for Release Branch"
|
||||
required: true
|
||||
default: "main"
|
||||
permissions:
|
||||
contents: 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: ${{ inputs.base_branch_name }}
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: 'temurin'
|
||||
- name: Install antlr cli
|
||||
run: |
|
||||
sudo make install_antlr_cli
|
||||
- name: Setup jq
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install jq
|
||||
- name: Update application versions
|
||||
run: |
|
||||
make update_all RELEASE_VERSION=${{ inputs.release_branch_name }}
|
||||
- name: Commit changes to ${{ inputs.release_branch_name }} branch
|
||||
uses: EndBug/add-and-commit@v9
|
||||
with:
|
||||
author_name: ${{ github.actor }}
|
||||
author_email: ${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com
|
||||
message: 'chore(release): Prepare Branch for `${{ inputs.release_branch_name }}`'
|
||||
add: '.'
|
||||
new_branch: ${{ inputs.release_branch_name }}
|
Loading…
x
Reference in New Issue
Block a user