Skip to content

Commit d2ed575

Browse files
authored
Only run clippy annotation job when PR is not a draft (#771)
1 parent 7bc65ca commit d2ed575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
uses: giraffate/clippy-action@13b9d32482f25d29ead141b79e7e04e7900281e0 # v1
9595
env:
9696
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97-
if: env.GITHUB_TOKEN != null
97+
if: env.GITHUB_TOKEN != null && github.event.pull_request.draft == false
9898
with:
9999
clippy_flags: --all-targets -- -D warnings
100100
reporter: 'github-pr-review'

0 commit comments

Comments
 (0)