From c820f0a670f4cd7055fe197c2fda21794faa8d1d Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Tue, 21 Mar 2023 16:41:27 -0400 Subject: [PATCH] qodana: fix notification conditions (#1053) --- .github/workflows/ci-qodana.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-qodana.yml b/.github/workflows/ci-qodana.yml index 06922f8b..788b5580 100644 --- a/.github/workflows/ci-qodana.yml +++ b/.github/workflows/ci-qodana.yml @@ -117,7 +117,9 @@ jobs: echo "client_payload=$client_payload" >> $GITHUB_OUTPUT - name: Repository Dispatch - if: ${{ steps.prepare.outputs.files != '' }} + if: >- + startsWith(github.event_name, 'pull_request') && + steps.prepare.outputs.files != '' uses: peter-evans/repository-dispatch@v2.1.1 with: token: ${{ secrets.GH_BOT_TOKEN }}