-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (42 loc) · 1004 Bytes
/
protobuf.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
name: protobuf
"on":
push:
branches:
- master
tags:
- v*
pull_request:
branches:
- master
jobs:
protobuf:
runs-on: ubuntu-latest
steps:
- name: Checkout source
id: source
uses: actions/checkout@v3
- name: Setup buf
id: buf
uses: bufbuild/buf-setup-action@v1.23.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Run linting
id: linting
uses: bufbuild/buf-lint-action@v1.0.3
with:
input: proto/
- name: Run breaking
id: breaking
uses: bufbuild/buf-breaking-action@v1.1.2
with:
input: proto/
against: https://github.com/${{ github.repository }}.git#branch=master
- name: Buf publish
id: publish
uses: bufbuild/buf-push-action@v1.1.1
if: github.event_name != 'pull_request'
with:
input: proto/
buf_token: ${{ secrets.BUF_TOKEN }}
...