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
|
2022-09-07 21:27:16 -07:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-02-16 09:30:10 -08:00
|
|
|
jobs:
|
2022-02-17 15:07:12 -08:00
|
|
|
buf:
|
|
|
|
name: lint and publish
|
|
|
|
runs-on: ubuntu-latest
|
2022-11-12 11:19:33 -08:00
|
|
|
if: github.repository_owner == 'prometheus'
|
2022-02-17 15:07:12 -08:00
|
|
|
steps:
|
2024-11-06 02:29:01 -08:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2024-12-03 03:37:50 -08:00
|
|
|
- uses: bufbuild/buf-setup-action@9672cee01808979ea1249f81d6d321217b9a10f6 # v1.47.2
|
2023-01-25 11:15:42 -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~1,subdir=prompb'
|
2024-01-25 01:24:37 -08:00
|
|
|
- uses: bufbuild/buf-push-action@a654ff18effe4641ebea4a4ce242c49800728459 # v1.1.1
|
2022-02-17 15:07:12 -08:00
|
|
|
with:
|
|
|
|
input: 'prompb'
|
|
|
|
buf_token: ${{ secrets.BUF_TOKEN }}
|