Skip to content

Commit e6e87ad

Browse files
committed
Allow dispatching deployment tests manually
1 parent 78b414b commit e6e87ad

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/deployment.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Deployment
22

33
on:
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:

0 commit comments

Comments
 (0)