2022-02-17 15:07:12 -08:00
|
|
|
name: buf.build
|
2023-01-25 11:11:41 -08:00
|
|
|
on:
|
2022-02-16 09:30:10 -08:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
jobs:
|
2022-02-17 15:07:12 -08:00
|
|
|
buf:
|
|
|
|
name: lint and publish
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-03 06:59:07 -08:00
|
|
|
- uses: actions/checkout@v3
|
2023-02-15 01:28:04 -08:00
|
|
|
- uses: bufbuild/buf-setup-action@v1.13.1
|
2023-01-25 11:15:42 -08:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2022-02-17 15:07:12 -08: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 }}
|