From d2ed5758123984dc0d224069733598067d82fecc Mon Sep 17 00:00:00 2001 From: Techassi Date: Thu, 25 Apr 2024 15:00:16 +0200 Subject: [PATCH] Only run clippy annotation job when PR is not a draft (#771) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2310c218..e94d379d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,7 +94,7 @@ jobs: uses: giraffate/clippy-action@13b9d32482f25d29ead141b79e7e04e7900281e0 # v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - if: env.GITHUB_TOKEN != null + if: env.GITHUB_TOKEN != null && github.event.pull_request.draft == false with: clippy_flags: --all-targets -- -D warnings reporter: 'github-pr-review'