Skip to content

Commit

Permalink
fix buf push tag on release
Browse files Browse the repository at this point in the history
the buf github action does not support
configuring the tag to be pushed, so it
always defaults to pushing the github SHA.

This changes the action to push the tag
to BSR with the ref_name instead of the commit
SHA.
  • Loading branch information
vroldanbet committed Mar 19, 2024
1 parent 9ba37ce commit a7ba0b5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ jobs:
- uses: "actions/checkout@v3"
- uses: "bufbuild/buf-setup-action@v1"
with:
version: "1.22.0"
- uses: "bufbuild/buf-push-action@v1"
with:
buf_token: "${{ secrets.BUF_REGISTRY_TOKEN }}"
version: "1.30.0"
- name: "push release name to BSR"
run:
"buf push --tag ${{ github.ref_name }}"
env:
BUF_TOKEN: "${{ secrets.BUF_REGISTRY_TOKEN }}"

0 comments on commit a7ba0b5

Please sign in to comment.