Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/dispatch_build_scoped_rector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
-
Expand Down
Loading