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:
|
2024-10-06 11:01:57 -07:00
|
|
|
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
2024-10-01 16:46:19 -07:00
|
|
|
- uses: bufbuild/buf-setup-action@62ee92603c244ad0da98bab36a834a999a5329e6 # v1.43.0
|
2023-01-25 11:09:46 -08:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2024-04-01 16:44:18 -07:00
|
|
|
- uses: bufbuild/buf-lint-action@06f9dd823d873146471cfaaf108a993fe00e5325 # v1.1.1
|
2022-02-17 15:07:12 -08:00
|
|
|
with:
|
|
|
|
input: 'prompb'
|
2024-04-01 16:44:13 -07:00
|
|
|
- uses: bufbuild/buf-breaking-action@c57b3d842a5c3f3b454756ef65305a50a587c5ba # v1.1.4
|
2022-02-17 15:07:12 -08:00
|
|
|
with:
|
|
|
|
input: 'prompb'
|
|
|
|
against: 'https://github.com/prometheus/prometheus.git#branch=main,ref=HEAD,subdir=prompb'
|