Skip to content

Commit

Permalink
Update buf CI GitHub action (#933)
Browse files Browse the repository at this point in the history
Update the GitHub action to use `buf-action`. This has improved support
for handling syncing GitHub repositories with the BSR. See the [default
behaviour](https://github.com/bufbuild/buf-action?tab=readme-ov-file#default-behavior).
Changes include:
- On each push to the repository the event will be synced. This includes
the git-metadata of the push.
- Formatting has been added as a check.
  • Loading branch information
emcfarlane authored Oct 8, 2024
1 parent b9e9115 commit 251f69b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 40 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/buf-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Buf CI
on:
push:
paths:
- '**.proto'
- '**/buf.yaml'
- '**/buf.lock'
- '**/buf.md'
- '**/README.md'
- '**/LICENSE'
- '.github/workflows/buf-ci.yaml'
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
delete:
permissions:
contents: read
pull-requests: write
jobs:
buf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v1
with:
input: proto
breaking_against: 'buf.build/connectrpc/conformance'
token: ${{ secrets.BUF_TOKEN }}

40 changes: 0 additions & 40 deletions .github/workflows/buf.yaml

This file was deleted.

0 comments on commit 251f69b

Please sign in to comment.