forked from regen-network/regen-ledger
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 888 Bytes
/
proto.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Proto
# **What it does**: Checks for breaking changes in proto files
# when proto files have been modified.
#
# **Why we have it**: Provides visibility into breaking changes and
# ensures no breaking changes are merged to a release branch.
#
# **What does it impact**: Application release process.
on:
pull_request:
branches:
- main
- release/v*
paths:
- 'proto/**'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
break-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v1
- uses: bufbuild/buf-breaking-action@v1
with:
input: 'proto'
against: 'https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},ref=HEAD~1,subdir=proto'