Skip to content

Bazel: introduce buildifier formatting #4

Bazel: introduce buildifier formatting

Bazel: introduce buildifier formatting #4

Workflow file for this run

name: Check bazel formatting
on:
pull_request:
paths:
- "**.bazel"
- "**.bzl"
branches:
- main
- "rc/*"
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check bazel formatting
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
with:
extra_args: buildifier --all-files --show-diff-on-failure
- name: Print rectifying command
if: failure()
run: |
echo "In order to format all bazel files, please run:"
echo " bazel run //:buildifier"
exit 1