From 138199f015e81345762455fb0354975b5d7f627d Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Mon, 31 Jul 2023 18:52:13 -0400 Subject: [PATCH] buf-format: init --- buf-format/action.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 buf-format/action.yaml diff --git a/buf-format/action.yaml b/buf-format/action.yaml new file mode 100644 index 0000000..7e1215b --- /dev/null +++ b/buf-format/action.yaml @@ -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"