From 7fe5dd25262d4e8d1f72d9dd282c6af24ed2f521 Mon Sep 17 00:00:00 2001 From: Chuck Grindel Date: Tue, 15 Aug 2023 16:49:35 -0600 Subject: [PATCH 1/2] chore: upgrade bazel-starlib and add tidy_all --- .github/renovate.json | 8 +++++++- BUILD.bazel | 9 ++++++++- MODULE.bazel | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index fc13058..e3b6647 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -3,5 +3,11 @@ "extends": [ "github>cgrindel/renovate_presets:ruleset_base", "github>cgrindel/renovate_presets:cgrindel_default" - ] + ], + "postUpgradeTasks": { + "commands": [ + "bazelisk run //:tidy_modified" + ], + "executionMode": "branch" + } } diff --git a/BUILD.bazel b/BUILD.bazel index 3fe4026..d91ec2f 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -4,7 +4,7 @@ load( "bzlformat_missing_pkgs", "bzlformat_pkg", ) -load("@cgrindel_bazel_starlib//bzltidy:defs.bzl", "tidy") +load("@cgrindel_bazel_starlib//bzltidy:defs.bzl", "tidy", "tidy_all") load( "@cgrindel_bazel_starlib//updatesrc:defs.bzl", "updatesrc_update_all", @@ -33,6 +33,13 @@ tidy( ], ) +tidy_all(name = "tidy_all") + +tidy_all( + name = "tidy_modified", + mode = "modified", +) + updatesrc_update_all( name = "update_all", targets_to_run = [ diff --git a/MODULE.bazel b/MODULE.bazel index 1e987d2..d71f753 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -5,7 +5,7 @@ module( bazel_dep(name = "platforms", version = "0.0.6") bazel_dep(name = "bazel_skylib", version = "1.4.2") -bazel_dep(name = "cgrindel_bazel_starlib", version = "0.16.1") +bazel_dep(name = "cgrindel_bazel_starlib", version = "0.16.2") bazel_dep( name = "rules_swift", version = "1.9.0", From 5893d718c9acc390db82fe6b74ae55788b471f54 Mon Sep 17 00:00:00 2001 From: Chuck Grindel Date: Tue, 15 Aug 2023 16:56:14 -0600 Subject: [PATCH 2/2] Be sure to cancel other CI runs --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa18169..e0ed499 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,10 @@ on: # Every day at 11:16 UTC. - cron: '16 11 * * *' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: macos_build: runs-on: macos-13