Skip to content

Commit

Permalink
Fix: Broken conditionals checking whether PR is from bot
Browse files Browse the repository at this point in the history
Fixes #409.
  • Loading branch information
alexdewar committed Jun 6, 2024
1 parent 399afa4 commit a708cbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,18 @@ jobs:
cmake --preset=${{ matrix.platform }}-debug -DWARNINGS_AS_ERRORS=ON -DGENERATE_COVERAGE=ON
- uses: ZedThree/[email protected]
if: matrix.compiler == 'gcc-default' && github.event_name == 'pull_request' && !(github.actor == 'dependabot[bot]' && github.actor == 'pre-commit-ci[bot]')
if: matrix.compiler == 'gcc-default' && github.event_name == 'pull_request' && !(github.actor == 'dependabot[bot]' || github.actor == 'pre-commit-ci[bot]')
id: review
with:
build_dir: out/build/linux-debug

# Uploads an artefact containing clang_fixes.json
- uses: ZedThree/clang-tidy-review/[email protected]
if: matrix.compiler == 'gcc-default' && github.event_name == 'pull_request' && !(github.actor == 'dependabot[bot]' && github.actor == 'pre-commit-ci[bot]')
if: matrix.compiler == 'gcc-default' && github.event_name == 'pull_request' && !(github.actor == 'dependabot[bot]' || github.actor == 'pre-commit-ci[bot]')
id: upload-review

# If there are any comments, fail the check
- if: steps.review.outputs.total_comments > 0 && matrix.compiler == 'gcc-default' && !(github.actor == 'dependabot[bot]' && github.actor == 'pre-commit-ci[bot]')
- if: steps.review.outputs.total_comments > 0 && matrix.compiler == 'gcc-default' && !(github.actor == 'dependabot[bot]' || github.actor == 'pre-commit-ci[bot]')
run: exit 1

- uses: ammaraskar/gcc-problem-matcher@master
Expand Down

0 comments on commit a708cbf

Please sign in to comment.