From 68e346da9cdd6474a319897ce1c7d1dcb1ebe79f Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Mon, 5 Feb 2024 09:03:28 -0500 Subject: [PATCH] Improve Dependabot exclusion condition --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6325b07..cbf6b1b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,7 +54,7 @@ jobs: toolchain: ${{ steps.minimal-version.outputs.msrv }} - name: Activate cache - if: github.actor != 'dependabot[bot]' + if: "!startsWith(github.head_ref, 'dependabot/')" uses: Swatinem/rust-cache@v2 - name: Build crate @@ -78,7 +78,7 @@ jobs: components: llvm-tools - name: Activate cache - if: github.actor != 'dependabot[bot]' + if: "!startsWith(github.head_ref, 'dependabot/')" uses: Swatinem/rust-cache@v2 - name: Install cargo-llvm-cov @@ -108,7 +108,7 @@ jobs: components: clippy, rustfmt - name: Activate cache - if: github.actor != 'dependabot[bot]' + if: "!startsWith(github.head_ref, 'dependabot/')" uses: Swatinem/rust-cache@v2 - name: Check code