Skip to content

Commit 7a39abc

Browse files
authored
Update dispatch rebuild rector-src on push (#766)
1 parent 547b419 commit 7a39abc

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

‎.github/workflows/dispatch_build_scoped_rector.yaml‎

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,24 @@
33
name: Dispatch Build Scoped Rector
44

55
on:
6-
pull_request:
7-
types:
8-
- closed
6+
push:
7+
branches:
8+
- main
9+
workflow_dispatch: null
910

1011
jobs:
1112
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'
13+
# only for this repository, not forks
14+
if: github.repository == 'rectorphp/rector-phpunit'
1415

1516
runs-on: ubuntu-latest
17+
timeout-minutes: 10
1618

1719
steps:
20+
-
21+
name: "Wait 20 seconds after push"
22+
run: sleep 20
23+
1824
# a tagged main is already being published by the tag build of rector-src,
1925
# dispatching a second build would race it for the push to rectorphp/rector
2026
-

0 commit comments

Comments
 (0)