Skip to content

Commit c19ac6c

Browse files
committed
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.
1 parent 2cc546d commit c19ac6c

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# github action that rebuilds https://github.com/rectorphp/rector
2+
# with the freshly merged rector-phpunit main
3+
name: Dispatch Build Scoped Rector
4+
5+
on:
6+
pull_request:
7+
types:
8+
- closed
9+
10+
jobs:
11+
dispatch_build_scoped_rector:
12+
# only for merged pull requests in this repository, not forks
13+
if: github.event.pull_request.merged == true && github.repository == 'rectorphp/rector-phpunit'
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
-
19+
name: "Trigger build_scoped_rector.yaml in rectorphp/rector-src"
20+
env:
21+
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
22+
run: gh workflow run build_scoped_rector.yaml --repo rectorphp/rector-src --ref main

0 commit comments

Comments
 (0)