diff --git a/.github/workflows/dispatch_build_scoped_rector.yaml b/.github/workflows/dispatch_build_scoped_rector.yaml index 8ca35aa7..eabad98f 100644 --- a/.github/workflows/dispatch_build_scoped_rector.yaml +++ b/.github/workflows/dispatch_build_scoped_rector.yaml @@ -3,18 +3,24 @@ name: Dispatch Build Scoped Rector on: - pull_request: - types: - - closed + push: + branches: + - main + workflow_dispatch: null jobs: dispatch_build_scoped_rector: - # only for merged pull requests in this repository, not forks - if: github.event.pull_request.merged == true && github.repository == 'rectorphp/rector-phpunit' + # only for this repository, not forks + if: github.repository == 'rectorphp/rector-phpunit' runs-on: ubuntu-latest + timeout-minutes: 10 steps: + - + name: "Wait 20 seconds after push" + run: sleep 20 + # a tagged main is already being published by the tag build of rector-src, # dispatching a second build would race it for the push to rectorphp/rector -