chore: update buildifier targets used by Aspect Workflows (#629)
This commit is contained in:
parent
c01c0e8443
commit
a69b16bfcf
|
@ -1,20 +0,0 @@
|
|||
name: Buildifier
|
||||
|
||||
# Controls when the action will run.
|
||||
on:
|
||||
# Triggers the workflow on push or pull request events but only for the main branch
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: buildifier
|
||||
run: bazel run --enable_bzlmod //:buildifier.check
|
12
BUILD.bazel
12
BUILD.bazel
|
@ -41,11 +41,17 @@ gazelle(
|
|||
command = "update-repos",
|
||||
)
|
||||
|
||||
buildifier(
|
||||
name = "buildifier",
|
||||
exclude_patterns = ["./.git/*"],
|
||||
lint_mode = "fix",
|
||||
mode = "fix",
|
||||
tags = ["manual"], # tag as manual so windows ci does not build it by default
|
||||
)
|
||||
|
||||
buildifier(
|
||||
name = "buildifier.check",
|
||||
exclude_patterns = [
|
||||
"./.git/*",
|
||||
],
|
||||
exclude_patterns = ["./.git/*"],
|
||||
lint_mode = "warn",
|
||||
mode = "diff",
|
||||
tags = ["manual"], # tag as manual so windows ci does not build it by default
|
||||
|
|
Loading…
Reference in New Issue