According to the docs, you need to specify the types of pull requests you are opening.
on: push: branches: [main] pull_request: types: [opened, reopened] branches: [main]