Closed craigpastro closed 2 years ago
In .github/workflows/pull_request.yaml something like the following should work:
.github/workflows/pull_request.yaml
name: Pull Request on: pull_request: branches: - main jobs: buf-fmt: runs-on: ubuntu-latest timeout-minutes: 5 steps: - name: Checkout code uses: actions/checkout@v2 - uses: bufbuild/buf-setup-action@v1 with: version: '1.4.0' - run: buf format -d --exit-code
In
.github/workflows/pull_request.yaml
something like the following should work: