Skip to content

Update buf.yaml and buf.lock to v2 #8

Update buf.yaml and buf.lock to v2

Update buf.yaml and buf.lock to v2 #8

Workflow file for this run

name: buf
on:
push:
paths:
- 'proto/**'
- '.github/workflows/buf.yaml'
workflow_dispatch:
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bufbuild/[email protected]
- uses: bufbuild/buf-lint-action@v1
with:
input: 'proto'
breaking:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bufbuild/[email protected]
- uses: bufbuild/buf-breaking-action@v1
with:
input: 'proto'
against: buf.build/bufbuild/knit-demo
push:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs:
- lint
- breaking
steps:
- uses: actions/checkout@v3
- uses: bufbuild/[email protected]
- uses: bufbuild/buf-push-action@v1
with:
input: 'proto'
buf_token: ${{ secrets.BUF_TOKEN }}