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