From af904549b28648ea007116050d3bca3426069811 Mon Sep 17 00:00:00 2001 From: anakinxc <103552181+anakinxc@users.noreply.github.com> Date: Thu, 11 Jan 2024 02:56:07 +0000 Subject: [PATCH 1/2] Try bazel steward --- .bazel-steward.yaml | 11 +++++++++++ .github/workflows/bazel-steward.yml | 16 ++++++++++++++++ .gitignore | 2 +- 3 files changed, 28 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..e3f5d3da --- /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" \ No newline at end of file diff --git a/.github/workflows/bazel-steward.yml b/.github/workflows/bazel-steward.yml new file mode 100644 index 00000000..3e1cc5ed --- /dev/null +++ b/.github/workflows/bazel-steward.yml @@ -0,0 +1,16 @@ +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 + \ No newline at end of file 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 From c6906ffbb80d5628a53251ad33ca609d5f18a652 Mon Sep 17 00:00:00 2001 From: anakinxc <103552181+anakinxc@users.noreply.github.com> Date: Thu, 11 Jan 2024 03:00:22 +0000 Subject: [PATCH 2/2] lint --- .bazel-steward.yaml | 2 +- .github/workflows/bazel-steward.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.bazel-steward.yaml b/.bazel-steward.yaml index e3f5d3da..e558eb9c 100644 --- a/.bazel-steward.yaml +++ b/.bazel-steward.yaml @@ -8,4 +8,4 @@ post-update-hooks: files-to-commit: - "bazel/BUILD.bazel" run-for: pull-request - commit-message: "Apply buildifier" \ No newline at end of file + commit-message: "Apply buildifier" diff --git a/.github/workflows/bazel-steward.yml b/.github/workflows/bazel-steward.yml index 3e1cc5ed..c7d4455a 100644 --- a/.github/workflows/bazel-steward.yml +++ b/.github/workflows/bazel-steward.yml @@ -13,4 +13,3 @@ jobs: with: fetch-depth: 0 - uses: VirtusLab/bazel-steward@latest - \ No newline at end of file