From c19ac6cba889a767fad60f7fea68420b7ec99c45 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 14 Jul 2026 17:44:33 +0200 Subject: [PATCH] Rebuild scoped Rector after a pull request is merged Dispatches build_scoped_rector.yaml in rectorphp/rector-src, so rectorphp/rector picks up merged changes without waiting for the next commit to rector-src main. Requires rectorphp/rector-src#8188, which adds the workflow_dispatch trigger the run relies on. --- .../dispatch_build_scoped_rector.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/dispatch_build_scoped_rector.yaml diff --git a/.github/workflows/dispatch_build_scoped_rector.yaml b/.github/workflows/dispatch_build_scoped_rector.yaml new file mode 100644 index 00000000..2abe4ba4 --- /dev/null +++ b/.github/workflows/dispatch_build_scoped_rector.yaml @@ -0,0 +1,22 @@ +# github action that rebuilds https://github.com/rectorphp/rector +# with the freshly merged rector-phpunit main +name: Dispatch Build Scoped Rector + +on: + pull_request: + types: + - closed + +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' + + runs-on: ubuntu-latest + + steps: + - + name: "Trigger build_scoped_rector.yaml in rectorphp/rector-src" + env: + GH_TOKEN: ${{ secrets.ACCESS_TOKEN }} + run: gh workflow run build_scoped_rector.yaml --repo rectorphp/rector-src --ref main