From d5398756c9c11ba0062a1ce95e37e7c3cd338fae Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Mon, 13 Jan 2025 16:10:50 +0000 Subject: [PATCH] Switch to `github.event.pull_request.user.login` --- .github/workflows/pull_request.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 2d7633bb..92af57fb 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -12,8 +12,9 @@ on: jobs: check-pr-title: - if: - github.actor != 'pre-commit-ci[bot]' || github.actor != 'dependabot[bot]' + if: >- + github.event.pull_request.user.login != 'pre-commit-ci[bot]' && + github.event.pull_request.user.login != 'dependabot[bot]' runs-on: ubuntu-latest steps: - name: Enforce PR title format