From 792264b7e5eb6e581ed7bbe9be48c4ff11a5db9f 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 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4a6ac20..7822722 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,7 +12,9 @@ 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 }}"