From 85d905db46b8982d42e7d272baa3807615c7cf2b Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Wed, 4 Sep 2024 16:49:11 -0700 Subject: [PATCH] CI: Skip cargo-deny on `next/*` branches. --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ebba6edc6..0393e0a8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -364,6 +364,14 @@ jobs: deny: runs-on: ubuntu-latest + + # next/* branches are expected to have git dependencies or otherwise break cargo-deny rules, + # so don't run cargo-deny on them. We still want to do so in pull requests, but that doesn't + # need a special rule because according to the GitHub docs, this will not be the branch name: + # “For pull requests, the format is `/merge`.” + # -- + if: ${{ !startsWith(github.ref, 'refs/heads/next/') }} + steps: - uses: actions/checkout@v4