diff --git a/.github/workflows/comment-on-pr.yml b/.github/workflows/comment-on-pr.yml index 2297fa4eca..cd414f9a90 100644 --- a/.github/workflows/comment-on-pr.yml +++ b/.github/workflows/comment-on-pr.yml @@ -10,7 +10,7 @@ jobs: comment: runs-on: ubuntu-latest steps: - - if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' + - if: github.event_name == 'pull_request' && github.event.pull_request.head.user.login != 'dependabot[bot]' && github.event.pull_request.head.user.login != 'dependabot-preview[bot]' name: Comment on PR uses: github-actions-up-and-running/pr-comment@v1.0.1 with: