Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Besu Bot to commit the version update #130

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: 'devops@consensys.net'

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