diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 005b8852..09ad509b 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -12,4 +12,4 @@ jobs: - uses: wizhi/setup-buf@v1 with: version: 0.40.0 - - run: buf breaking --against '.git#branch=raccoon-proto' + - run: git ls-tree -r main | grep '.*\.proto$' >/dev/null && buf breaking --against .git#branch=main