2022-02-17 15:07:12 -08:00
|
|
|
name: buf.build
|
2023-01-25 11:09:46 -08:00
|
|
|
on:
|
2022-02-17 15:07:12 -08:00
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- ".github/workflows/buf-lint.yml"
|
|
|
|
- "**.proto"
|
2022-09-07 21:27:16 -07:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-02-17 15:07:12 -08:00
|
|
|
jobs:
|
|
|
|
buf:
|
|
|
|
name: lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-11-01 16:32:08 -07:00
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2023-12-01 15:24:02 -08:00
|
|
|
- uses: bufbuild/buf-setup-action@382440cdb8ec7bc25a68d7b4711163d95f7cc3aa # v1.28.1
|
2023-01-25 11:09:46 -08:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2023-09-13 06:27:38 -07:00
|
|
|
- uses: bufbuild/buf-lint-action@bd48f53224baaaf0fc55de9a913e7680ca6dbea4 # v1.0.3
|
2022-02-17 15:07:12 -08:00
|
|
|
with:
|
|
|
|
input: 'prompb'
|
2023-09-13 06:27:38 -07:00
|
|
|
- uses: bufbuild/buf-breaking-action@f47418c81c00bfd65394628385593542f64db477 # v1.1.2
|
2022-02-17 15:07:12 -08:00
|
|
|
with:
|
|
|
|
input: 'prompb'
|
|
|
|
against: 'https://github.com/prometheus/prometheus.git#branch=main,ref=HEAD,subdir=prompb'
|