Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions buf-format/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: "Buf - Format"
description: |
This actions runs `buf format` in the working tree and then verifies that
there are no differences from running the tool.
inputs:
version:
description: "Buf version used to generate"
default: "1.18.0"
required: false
runs:
using: "composite"
steps:
- uses: "bufbuild/buf-setup-action@v1"
with:
version: "${{ inputs.version }}"
- name: "Format Protos"
shell: "bash"
run: "buf format --diff --exit-code"