mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-17 19:14:04 -08:00
04dd6be1a0
Currently all the github actions return warnings because the "on" keyword in the yaml files are being interpreted as a "truthy" value by yamllint. To ignore this behavior I added a rule which ignores the "on". See https://github.com/adrienverge/yamllint/issues/430. Signed-off-by: Gabriel Goller <gabriel.goller@acs.it> Signed-off-by: Gabriel Goller <gabriel.goller@acs.it> Co-authored-by: Gabriel Goller <gabriel.goller@acs.it>
24 lines
650 B
YAML
24 lines
650 B
YAML
name: buf.build
|
|
on: # yamllint disable-line rule:truthy
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
buf:
|
|
name: lint and publish
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: bufbuild/buf-setup-action@v1.7.0
|
|
- 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 }}
|