From 163c7bdc3d948bdfb365d432489753ed0485199a Mon Sep 17 00:00:00 2001 From: anakinxc <103552181+anakinxc@users.noreply.github.com> Date: Thu, 11 Jan 2024 11:00:48 +0800 Subject: [PATCH] Try bazel steward (#463) --- .bazel-steward.yaml | 11 +++++++++++ .github/workflows/bazel-steward.yml | 15 +++++++++++++++ .gitignore | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .bazel-steward.yaml create mode 100644 .github/workflows/bazel-steward.yml diff --git a/.bazel-steward.yaml b/.bazel-steward.yaml new file mode 100644 index 00000000..e558eb9c --- /dev/null +++ b/.bazel-steward.yaml @@ -0,0 +1,11 @@ +search-paths: + - + kinds: bazel + path-patterns: + - "bazel/BUILD.bazel" +post-update-hooks: + - commands: "buildifier --lint=fix -r ." + files-to-commit: + - "bazel/BUILD.bazel" + run-for: pull-request + commit-message: "Apply buildifier" diff --git a/.github/workflows/bazel-steward.yml b/.github/workflows/bazel-steward.yml new file mode 100644 index 00000000..c7d4455a --- /dev/null +++ b/.github/workflows/bazel-steward.yml @@ -0,0 +1,15 @@ +name: Bazel Steward + +on: + workflow_dispatch: + schedule: + - cron: '30 5 * * *' # runs every day at 5:30 am + +jobs: + bazel-steward: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: VirtusLab/bazel-steward@latest diff --git a/.gitignore b/.gitignore index 29a54851..2dc0c4e6 100644 --- a/.gitignore +++ b/.gitignore @@ -24,7 +24,7 @@ build _build # bazel -bazel-* +bazel-*/ # cmake related abseil-cpp