ci: support releasing proto definitions to BSR #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: buf-ci | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+" | |
- "v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+" | |
- "v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+" | |
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+" | |
pull_request: | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
buf: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bufbuild/buf-action@v1 | |
with: | |
token: ${{ secrets.BUF_TOKEN }} | |
input: "pb" | |
breaking-against: 'https://github.com/celestiaorg/nmt.git#branch=main,ref=HEAD~1,subdir=pb' | |
# Run breaking change, lint, and format checks for Protobuf sources against all branches, | |
# 'pb' subdirectory, then push to the Buf Schema Registry once validated | |
lint: true | |
format: true | |
breaking: true |