2022-02-17 23:07:12 +00:00
|
|
|
name: buf.build
|
2023-01-25 19:09:46 +00:00
|
|
|
on:
|
2022-02-17 23:07:12 +00:00
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- ".github/workflows/buf-lint.yml"
|
|
|
|
- "**.proto"
|
2022-09-08 04:27:16 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-02-17 23:07:12 +00:00
|
|
|
jobs:
|
|
|
|
buf:
|
|
|
|
name: lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-03 14:59:07 +00:00
|
|
|
- uses: actions/checkout@v3
|
2023-09-01 08:40:12 +00:00
|
|
|
- uses: bufbuild/buf-setup-action@v1.26.1
|
2023-01-25 19:09:46 +00:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2022-02-17 23:07:12 +00:00
|
|
|
- uses: bufbuild/buf-lint-action@v1
|
|
|
|
with:
|
|
|
|
input: 'prompb'
|
|
|
|
- uses: bufbuild/buf-breaking-action@v1
|
|
|
|
with:
|
|
|
|
input: 'prompb'
|
|
|
|
against: 'https://github.com/prometheus/prometheus.git#branch=main,ref=HEAD,subdir=prompb'
|