2022-02-17 23:07:12 +00:00
|
|
|
name: buf.build
|
2022-02-16 17:30:10 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
jobs:
|
2022-02-17 23:07:12 +00:00
|
|
|
buf:
|
|
|
|
name: lint and publish
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-03 14:59:07 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-05-02 09:05:33 +00:00
|
|
|
- uses: bufbuild/buf-setup-action@v1.4.0
|
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~1,subdir=prompb'
|
|
|
|
- uses: bufbuild/buf-push-action@v1
|
|
|
|
with:
|
|
|
|
input: 'prompb'
|
|
|
|
buf_token: ${{ secrets.BUF_TOKEN }}
|