Skip to content

Commit

Permalink
Add autofix protobuf job
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Nov 8, 2024
1 parent 6fa6afc commit 42b65e8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 42b65e8

Please sign in to comment.