Skip to content

Commit 9a4e2aa

Browse files
committed
ci: fix buf action
Signed-off-by: Roman Dmytrenko <[email protected]>
1 parent 7a6abee commit 9a4e2aa

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

.github/workflows/proto-push.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name: Proto Push
22
on:
3+
pull_request:
34
push:
45
tags:
56
- "v2*"
67

8+
permissions:
9+
contents: read
10+
pull-requests: write
711
jobs:
812
proto-push:
913
name: "Push Protos"
@@ -14,25 +18,23 @@ jobs:
1418
- uses: bufbuild/buf-action@v1
1519
with:
1620
setup_only: true
17-
github_token: ${{ secrets.GITHUB_TOKEN }}
1821

19-
# TODO: also include v2/environments
2022
- uses: bufbuild/buf-action@v1
2123
with:
22-
input: "rpc/flipt"
24+
input: "rpc"
2325
lint: true
2426

25-
# TODO: also include v2/environments
2627
- uses: bufbuild/buf-action@v1
2728
with:
28-
input: "rpc/flipt"
29+
input: "rpc"
2930
breaking: true
30-
breaking_against: "https://github.com/${GITHUB_REPOSITORY}.git#branch=v2"
31+
breaking_against: "https://github.com/${{ github.repository }}.git#branch=v2,subdir=rpc"
3132

32-
# TODO: we need to version the protos for pushing
33-
# TODO: also include v2/environments
34-
# - uses: bufbuild/buf-action@v1
35-
# with:
36-
# input: "rpc/flipt"
37-
# push: true
38-
# token: ${{ secrets.BUF_TOKEN }}
33+
# - uses: bufbuild/buf-action@v1
34+
# with:
35+
# input: "rpc"
36+
# exclude_paths: |
37+
# rpc/v2/analytics/analytics.proto
38+
# rpc/v2/evaluation/evaluation.proto
39+
# push: true
40+
# token: ${{ secrets.BUF_TOKEN }}

buf.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ lint:
3030
breaking:
3131
use:
3232
- FILE
33+
ignore:
34+
- rpc/v2/analytics
35+
- rpc/v2/evaluation
3336
except:
3437
- EXTENSION_NO_DELETE
3538
- FIELD_SAME_DEFAULT

0 commit comments

Comments
 (0)