qodana: fix notification conditions (#1053)

This commit is contained in:
ReenigneArcher 2023-03-21 16:41:27 -04:00 committed by GitHub
parent 744b54ffd4
commit c820f0a670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }}