Skip to content

Commit

Permalink
CI: Skip cargo-deny on next/* branches.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Sep 4, 2024
1 parent 549913f commit 85d905d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<pr_number>/merge`.”
# -- <https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#github-context>
if: ${{ !startsWith(github.ref, 'refs/heads/next/') }}

steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 85d905d

Please sign in to comment.