From 6688c086c7af7fe7b36d5cc3be541864a9b34f76 Mon Sep 17 00:00:00 2001 From: Akash Jain <15995028+akash-jain-10@users.noreply.github.com> Date: Wed, 29 May 2024 13:35:51 +0530 Subject: [PATCH] chore(CI): Workflow that will take care of Release Version updates (#16429) Co-authored-by: Matias Puerta --- .../workflows/git-create-release-branch.yml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/git-create-release-branch.yml diff --git a/.github/workflows/git-create-release-branch.yml b/.github/workflows/git-create-release-branch.yml new file mode 100644 index 00000000000..35b698cc34f --- /dev/null +++ b/.github/workflows/git-create-release-branch.yml @@ -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 }}