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 PR action to update bufbuild/buf version #165

Merged
merged 1 commit into from
Nov 13, 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
17 changes: 8 additions & 9 deletions .github/workflows/update-buf-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ jobs:
- name: Update Buf Version
run: make updatebufversion
- name: Create PR
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
BRANCH="release/v${RELEASE_BUF_VERSION}"
git switch -C ${BRANCH}
git add make/go/dep_buf.mk
git commit -m "Update version to ${RELEASE_BUF_VERSION}"
git push --set-upstream origin --force ${BRANCH}
gh pr create --title "Update buf version to v${RELEASE_BUF_VERSION}" --body "Update buf version to newly released version, ${RELEASE_BUF_VERSION}."
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
with:
add-paths: .
commit-message: "Update bufbuild/buf version to ${{ env.RELEASE_BUF_VERSION }}"
branch: buf-${{ env.RELEASE_BUF_VERSION }}
delete-branch: true
title: "Update bufbuild/buf version to ${{ env.RELEASE_BUF_VERSION }}"
body: "Update bufbuild/buf version to newly released version, v${{ env.RELEASE_BUF_VERSION }}."