How to prevent action from running if the merged user is dependabot

I have an action that deploys to Vercel. Though I’ve applied the if condition which should technically stop this action from running if I merge a PR created by dependabot but that doesn’t seem to work. Any help would be appreciated. Thanks!

name: Production deployment
on:
  push:
    branches:
      - dev

jobs:
  deploy:
    if: github.actor != 'dependabot[bot]'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: '12'
      - run: npm install
      - run: npm run build
      - uses: amondnet/vercel-action@v20
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          vercel-token: ${{ secrets.VERCEL_TOKEN }}
          vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
          vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
          working-directory: ./
          alias-domains: graphite-ui.com

I haven’t tested or checked this but if you’re using merge the actor is probably you not dependant.

That is sad. Is there any way I can find out who the commit author was? Or can I solve this in any other way?