Skip to content

Commit

Permalink
Use PR action to update bufbuild/buf version (#165)
Browse files Browse the repository at this point in the history
Since we are not providing the token, we'll need to use the PR action,
similar
to `buf-maven-publish`
https://github.com/bufbuild/buf-maven-publish/blob/4b5ad6a20ef3eaaf08cbde0e04928e5d447e6e19/.github/workflows/update-buf-version.yaml#L46C1-L54C46
  • Loading branch information
doriable authored Nov 13, 2024
1 parent 7cb75d9 commit 7415338
Showing 1 changed file with 8 additions and 9 deletions.
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 }}."

0 comments on commit 7415338

Please sign in to comment.