Skip to content

Commit 46040c2

Browse files
committed
ci: add buf actions
1 parent 7475c4b commit 46040c2

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/buf.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Buf CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request_target:
7+
branches:
8+
- master
9+
types: [opened, synchronize, reopened]
10+
11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
15+
jobs:
16+
buf:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: bufbuild/buf-action@v1
21+
with:
22+
# Change setup_only to true if you only want to set up the Action and not execute other commands.
23+
# Otherwise, you can delete this line--the default is false.
24+
setup_only: false
25+
# Optional GitHub token for API requests. Ensures requests aren't rate limited.
26+
github_token: ${{ github.token }}

buf.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ breaking:
77

88
lint:
99
use:
10-
- DEFAULT
10+
- STANDARD

0 commit comments

Comments
 (0)