File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11name : Deployment
22
33on :
4+ workflow_dispatch :
45 push :
56 branches :
67 - main
@@ -195,7 +196,7 @@ jobs:
195196 runs-on : ubuntu-latest
196197 needs : [build, test]
197198
198- if : ${{ github.repository_owner == 'wp-cli' }}
199+ if : ${{ github.repository_owner == 'wp-cli' && github.event_name != 'workflow_dispatch' }}
199200 steps :
200201 - name : Check out builds repository
201202 uses : actions/checkout@v4
@@ -257,7 +258,7 @@ jobs:
257258 build-rpm : # -----------------------------------------------------------------------
258259 name : Build RPM package
259260 runs-on : ubuntu-latest
260- if : ${{ contains(github.ref, 'release') && github.repository_owner == 'wp-cli' }}
261+ if : ${{ contains(github.ref, 'release') && github.repository_owner == 'wp-cli' && github.event_name != 'workflow_dispatch' }}
261262 needs : [deploy]
262263
263264 steps :
@@ -311,7 +312,7 @@ jobs:
311312 build-deb : # -----------------------------------------------------------------------
312313 name : Build DEB package
313314 runs-on : ubuntu-latest
314- if : ${{ contains(github.ref, 'release') && github.repository_owner == 'wp-cli' }}
315+ if : ${{ contains(github.ref, 'release') && github.repository_owner == 'wp-cli' && github.event_name != 'workflow_dispatch' }}
315316 needs : [build-rpm]
316317
317318 steps :
You can’t perform that action at this time.
0 commit comments