diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c91c67..bed417d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,13 @@ permissions: jobs: build: - if: github.event_name == 'workflow_dispatch' || (startsWith(github.head_ref, 'release-please--') && github.event.pull_request.head.repo.full_name == github.repository) + if: > + github.event_name == 'workflow_dispatch' || + ( + startsWith(github.head_ref, 'release-please--') && + github.event.pull_request.head.repo.full_name == github.repository && + github.event.pull_request.user.type == 'Bot' + ) runs-on: ubuntu-latest steps: - uses: actions/create-github-app-token@v3