From 42b65e8ec8862c21aa871d5695c549c348c4f261 Mon Sep 17 00:00:00 2001 From: Christoph Otter Date: Fri, 8 Nov 2024 10:54:54 +0700 Subject: [PATCH] Add autofix protobuf job --- .github/workflows/autofix.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/autofix.yml diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml new file mode 100644 index 0000000000..69c82c2ef7 --- /dev/null +++ b/.github/workflows/autofix.yml @@ -0,0 +1,24 @@ +name: autofix.ci # needed to securely identify the workflow + +on: + pull_request: + +permissions: + contents: read + +jobs: + autofix-protobuf: + runs-on: ubuntu-latest + container: + image: ghcr.io/cosmos/proto-builder:0.14.0 + steps: + - uses: actions/checkout@v4 + - name: Format protobuf + run: find ./ -name "*.proto" -exec clang-format -i {} \; + - name: Generate protobuf + run: ./scripts/protocgen.sh + - name: Format + run: make format + + # Get latest version from https://autofix.ci/setup + - uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a