2022-02-17 23:07:12 +00:00
|
|
|
name: buf.build
|
2023-01-25 19:11:41 +00:00
|
|
|
on:
|
2022-02-16 17:30:10 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-09-08 04:27:16 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-02-16 17:30:10 +00:00
|
|
|
jobs:
|
2022-02-17 23:07:12 +00:00
|
|
|
buf:
|
|
|
|
name: lint and publish
|
|
|
|
runs-on: ubuntu-latest
|
2022-11-12 19:19:33 +00:00
|
|
|
if: github.repository_owner == 'prometheus'
|
2022-02-17 23:07:12 +00:00
|
|
|
steps:
|
2023-11-01 23:32:08 +00:00
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2023-12-01 23:24:02 +00:00
|
|
|
- uses: bufbuild/buf-setup-action@382440cdb8ec7bc25a68d7b4711163d95f7cc3aa # v1.28.1
|
2023-01-25 19:15:42 +00:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2023-09-13 13:27:38 +00:00
|
|
|
- uses: bufbuild/buf-lint-action@bd48f53224baaaf0fc55de9a913e7680ca6dbea4 # v1.0.3
|
2022-02-17 23:07:12 +00:00
|
|
|
with:
|
|
|
|
input: 'prompb'
|
2023-09-13 13:27:38 +00:00
|
|
|
- uses: bufbuild/buf-breaking-action@f47418c81c00bfd65394628385593542f64db477 # v1.1.2
|
2022-02-17 23:07:12 +00:00
|
|
|
with:
|
|
|
|
input: 'prompb'
|
|
|
|
against: 'https://github.com/prometheus/prometheus.git#branch=main,ref=HEAD~1,subdir=prompb'
|
2023-09-13 13:27:38 +00:00
|
|
|
- uses: bufbuild/buf-push-action@342fc4cdcf29115a01cf12a2c6dd6aac68dc51e1 # v1.1.1
|
2022-02-17 23:07:12 +00:00
|
|
|
with:
|
|
|
|
input: 'prompb'
|
|
|
|
buf_token: ${{ secrets.BUF_TOKEN }}
|