Skip to content

Commit 792264b

Browse files
committed
fix buf push tag on release
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.
1 parent 9ba37ce commit 792264b

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/release.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212
- uses: "actions/checkout@v3"
1313
- uses: "bufbuild/buf-setup-action@v1"
1414
with:
15-
version: "1.22.0"
16-
- uses: "bufbuild/buf-push-action@v1"
17-
with:
18-
buf_token: "${{ secrets.BUF_REGISTRY_TOKEN }}"
15+
version: "1.30.0"
16+
- name: "push release name to BSR"
17+
run:
18+
"buf push --tag ${{ github.ref_name }}"
19+
env:
20+
BUF_TOKEN: "${{ secrets.BUF_REGISTRY_TOKEN }}"

0 commit comments

Comments
 (0)