Skip to content

Commit

Permalink
Use Besu Bot to commit the version update (#130)
Browse files Browse the repository at this point in the history
Removed the inputs Git name and email. Intead using the 'Besu Bot' GitHub user to perform the commit

Signed-off-by: Chaminda Divitotawela <[email protected]>
  • Loading branch information
cdivitotawela authored Aug 12, 2024
1 parent a1c10e0 commit 5676231
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 || {
Expand All @@ -46,6 +38,8 @@ jobs:
git push origin $BRANCH
env:
BRANCH: ${{ steps.branch.outputs.BRANCH }}
GIT_NAME: 'Besu Bot'
GIT_EMAIL: '[email protected]'

- name: Create Pull Request [permission needed]
run: |
Expand Down

0 comments on commit 5676231

Please sign in to comment.