From 9487c5193fb5d0dabde29e3a079ca0fc3bb64172 Mon Sep 17 00:00:00 2001 From: Kybxd <627940450@qq.com> Date: Mon, 1 Jun 2026 11:27:09 +0800 Subject: [PATCH] ci(buf): only sync top-level release tags to BSR Restrict the buf-ci workflow's push trigger to top-level release tags (vX.Y.Z[-suffix]) and all branches. Submodule tags such as cmd/tableauc/vX.Y.Z (consumed by release.yml) no longer trigger buf-action, preventing them from being pushed to BSR as spurious tags. --- .github/workflows/buf-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/buf-ci.yml b/.github/workflows/buf-ci.yml index d4af4e84..ec0885a3 100644 --- a/.github/workflows/buf-ci.yml +++ b/.github/workflows/buf-ci.yml @@ -1,6 +1,14 @@ name: Buf CI on: push: + branches: ['**'] + # Only top-level release tags (vX.Y.Z[-suffix]) should be synced to BSR. + # Submodule tags such as `cmd/tableauc/vX.Y.Z` (consumed by release.yml) + # must NOT trigger this workflow, otherwise buf-action would push them + # to BSR as well. + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + - 'v[0-9]+.[0-9]+.[0-9]+-*' pull_request: types: [opened, synchronize, reopened, labeled, unlabeled] delete: