From a7ba0b5413b66288b7dacedc7230d0c7ca30d10d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Rold=C3=A1n=20Betancort?= Date: Tue, 19 Mar 2024 07:55:36 +0000 Subject: [PATCH] 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. --- .github/workflows/release.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4a6ac20..46ac141 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 }}" +