Skip to content

build(deps): bump golang.org/x/net from 0.14.0 to 0.17.0 in /connect-server #1167

build(deps): bump golang.org/x/net from 0.14.0 to 0.17.0 in /connect-server

build(deps): bump golang.org/x/net from 0.14.0 to 0.17.0 in /connect-server #1167

name: Check proto breaks
on:
pull_request:
types:
- opened
- synchronize
- edited
jobs:
check-proto-break:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19
- run: go install github.com/bufbuild/buf/cmd/[email protected]
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check if PR is breaking
run: |
title="${{ github.event.pull_request.title }}"
if [[ "$title" == *'!'* ]]; then
echo "PR is a breaking change by title"
exit 0
else
echo "Checking if PR is a breaking change"
buf breaking --path ./api/protobuf/ --against '.git#branch=origin/main'
fi