From 619aeaaa7dafd2226dd6656d272b6e62b63bf751 Mon Sep 17 00:00:00 2001 From: Chaminda Divitotawela Date: Mon, 12 Aug 2024 11:40:01 +1000 Subject: [PATCH] Use Besu Bot to commit the version update Removed the inputs Git name and email. Intead using the 'Besu Bot' GitHub user to perform the commit Signed-off-by: Chaminda Divitotawela --- .github/workflows/update-version.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index bd8d705..f5fe50c 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -7,14 +7,6 @@ on: required: true type: string description: 'Besu version to be updated' - name: - required: true - type: string - description: 'Name of the author to be included in git commit signature' - email: - required: true - type: string - description: 'Email of the author to be included in git commit signature' jobs: update: @@ -33,8 +25,8 @@ jobs: - name: Update version run: | - git config --global user.name "${{ inputs.name }}" - git config --global user.email "${{ inputs.email }}" + git config --global user.name "$GIT_NAME" + git config --global user.email "$GIT_EMAIL" git checkout -b $BRANCH bash updateBesu.sh ${{ inputs.version }} git status -s | grep " M " | grep -q besu.rb || { @@ -46,6 +38,8 @@ jobs: git push origin $BRANCH env: BRANCH: ${{ steps.branch.outputs.BRANCH }} + GIT_NAME: 'Besu Bot' + GIT_EMAIL: 'devops@consensys.net' - name: Create Pull Request [permission needed] run: |