Skip to content

Commit 73e6216

Browse files
committed
Allow to run on workflow dispatch
1 parent 2724efd commit 73e6216

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/testing-pr.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
workflow_dispatch:
1010
jobs:
1111
clone-pr-branch:
12-
if: github.event.review.state == 'approved' && !contains(github.event.label.name, 'skip-ci')
12+
if: github.event.review.state == 'approved' && !contains(github.event.label.name, 'skip-ci') || github.event_name == 'workflow_dispatch'
1313
runs-on: CI-pool
1414
steps:
1515
- name: Checkout
@@ -18,7 +18,8 @@ jobs:
1818
fetch-depth: 0
1919

2020
remove-old-deployment:
21-
if: github.event.review.state == 'approved' && !contains(github.event.label.name, 'skip-ci')
21+
if: github.event.review.state == 'approved' && !contains(github.event.label.name, 'skip-ci') || github.event_name == 'workflow_dispatch'
22+
2223
needs: clone-pr-branch
2324
runs-on: CI-pool
2425
steps:
@@ -37,7 +38,7 @@ jobs:
3738
done
3839
3940
create-new-vm:
40-
if: github.event.review.state == 'approved' && !contains(github.event.label.name, 'skip-ci')
41+
if: github.event.review.state == 'approved' && !contains(github.event.label.name, 'skip-ci') || github.event_name == 'workflow_dispatch'
4142
needs: remove-old-deployment
4243
runs-on: CI-pool
4344
steps:
@@ -48,7 +49,7 @@ jobs:
4849
./build-spoke.sh ~/openshift_pull.json 1
4950
5051
launch-spoke-pipeline:
51-
if: github.event.review.state == 'approved' && !contains(github.event.label.name, 'skip-ci')
52+
if: github.event.review.state == 'approved' && !contains(github.event.label.name, 'skip-ci') || github.event_name == 'workflow_dispatch'
5253
needs: create-new-vm
5354
runs-on: CI-pool
5455
steps:
@@ -58,7 +59,7 @@ jobs:
5859
tkn pipeline start -n spoke-deployer -p git-revision=${{ github.head_ref }} -p spokes-config="$(cat /root/actions-runner/_work/ztp-pipeline-relocatable/ztp-pipeline-relocatable/hack/deploy-hub-local/spokes.yaml)" -p kubeconfig=${KUBECONFIG} -w name=ztp,claimName=ztp-pvc --timeout 5h --use-param-defaults deploy-ztp-spokes
5960
6061
verify-pipe-success:
61-
if: github.event.review.state == 'approved' && !contains(github.event.label.name, 'skip-ci')
62+
if: github.event.review.state == 'approved' && !contains(github.event.label.name, 'skip-ci') || github.event_name == 'workflow_dispatch'
6263
needs: launch-spoke-pipeline
6364
runs-on: CI-pool
6465
steps:

0 commit comments

Comments
 (0)