diff --git a/.github/workflows/codeowner-self-approval.yml b/.github/workflows/codeowner-self-approval.yml index 308c5afba0e..2a24947eb77 100644 --- a/.github/workflows/codeowner-self-approval.yml +++ b/.github/workflows/codeowner-self-approval.yml @@ -8,6 +8,8 @@ on: jobs: approve: runs-on: ubuntu-latest + # Only run if the PR author enabled auto-merge, not someone else. + if: github.event.sender.login == github.event.pull_request.user.login steps: # Check out in order to get CODEOWNERS.