1717 permissions :
1818 pull-requests : read
1919 name : Check changed files
20- if : github.repository == 'stackhpc/stackhpc-kayobe-config'
20+ if : github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft
2121 needs :
2222 - lint
2323 # - tox
4949 - environment : docs
5050 python-version : " 3.12"
5151 name : Tox ${{ matrix.environment }} with Python ${{ matrix.python-version }}
52- if : github.repository == 'stackhpc/stackhpc-kayobe-config'
52+ if : github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft
5353 steps :
5454 - name : GitHub Checkout 🛎
5555 uses : actions/checkout@v4
7777 - ansible : " 2.17"
7878 python : " 3.10"
7979 name : Ansible ${{ matrix.ansible }} lint with Python ${{ matrix.python }}
80- if : github.repository == 'stackhpc/stackhpc-kayobe-config'
80+ if : github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft
8181 steps :
8282 - name : GitHub Checkout 🛎
8383 uses : actions/checkout@v4
@@ -116,7 +116,7 @@ jobs:
116116 uses : ./.github/workflows/stackhpc-build-kayobe-image.yml
117117 with :
118118 if : ${{ needs.check-changes.outputs.build-kayobe-image == 'true' }}
119- if : github.repository == 'stackhpc/stackhpc-kayobe-config'
119+ if : github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft
120120
121121 check-tags :
122122 name : Check container image tags
@@ -128,7 +128,7 @@ jobs:
128128 kayobe_image : ${{ needs.build-kayobe-image.outputs.kayobe_image }}
129129 if : ${{ needs.check-changes.outputs.check-tags == 'true' }}
130130 secrets : inherit
131- if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
131+ if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft }}
132132
133133 all-in-one-ubuntu-noble-ovn :
134134 name : aio (Ubuntu Noble OVN)
@@ -145,7 +145,7 @@ jobs:
145145 OS_CLOUD : openstack
146146 if : ${{ needs.check-changes.outputs.aio == 'true' }}
147147 secrets : inherit
148- if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
148+ if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft }}
149149
150150 all-in-one-rocky-9-ovs :
151151 name : aio (Rocky 9 OVS)
@@ -162,7 +162,7 @@ jobs:
162162 OS_CLOUD : openstack
163163 if : ${{ needs.check-changes.outputs.aio == 'true' }}
164164 secrets : inherit
165- if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
165+ if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft }}
166166
167167 all-in-one-rocky-9-ovn :
168168 name : aio (Rocky 9 OVN)
@@ -179,7 +179,7 @@ jobs:
179179 OS_CLOUD : openstack
180180 if : ${{ needs.check-changes.outputs.aio == 'true' }}
181181 secrets : inherit
182- if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
182+ if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft }}
183183
184184 # Test two upgrade scenarios: Ubuntu Jammy to Noble OVN and Rocky 9 OVN.
185185
@@ -199,7 +199,7 @@ jobs:
199199 if : ${{ needs.check-changes.outputs.aio == 'true' }}
200200 upgrade : true
201201 secrets : inherit
202- if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
202+ if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft }}
203203
204204 all-in-one-upgrade-rocky-9-ovn :
205205 name : aio upgrade (Rocky 9 OVN)
@@ -217,7 +217,7 @@ jobs:
217217 if : ${{ needs.check-changes.outputs.aio == 'true' }}
218218 upgrade : true
219219 secrets : inherit
220- if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
220+ if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft }}
221221
222222 all-in-one-upgrade-rocky-9-ovs :
223223 name : aio upgrade (Rocky 9 OVS)
@@ -235,4 +235,4 @@ jobs:
235235 if : ${{ needs.check-changes.outputs.aio == 'true' }}
236236 upgrade : true
237237 secrets : inherit
238- if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
238+ if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft }}
0 commit comments