Skip to content

Commit

Permalink
Only run clippy annotation job when PR is not a draft (#771)
Browse files Browse the repository at this point in the history
  • Loading branch information
Techassi authored Apr 25, 2024
1 parent 7bc65ca commit d2ed575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit d2ed575

Please sign in to comment.