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:
|
2024-06-01 23:15:35 +00:00
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
2024-06-03 11:57:51 +00:00
|
|
|
- uses: bufbuild/buf-setup-action@dde0b9351db90fbf78e345f41a57de8514bf1091 # v1.32.2
|
2023-01-25 19:15:42 +00:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2024-04-01 23:44:18 +00:00
|
|
|
- uses: bufbuild/buf-lint-action@06f9dd823d873146471cfaaf108a993fe00e5325 # v1.1.1
|
2022-02-17 23:07:12 +00:00
|
|
|
with:
|
|
|
|
input: 'prompb'
|
2024-04-01 23:44:13 +00:00
|
|
|
- uses: bufbuild/buf-breaking-action@c57b3d842a5c3f3b454756ef65305a50a587c5ba # v1.1.4
|
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'
|
2024-01-25 09:24:37 +00:00
|
|
|
- uses: bufbuild/buf-push-action@a654ff18effe4641ebea4a4ce242c49800728459 # v1.1.1
|
2022-02-17 23:07:12 +00:00
|
|
|
with:
|
|
|
|
input: 'prompb'
|
|
|
|
buf_token: ${{ secrets.BUF_TOKEN }}
|