Skip to content

Commit dbb961f

Browse files
committed
CI: Remove unnecessary conditionals
The job dependency should handle this, with the condition applied to the first job.
1 parent 978a5b3 commit dbb961f

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/stackhpc-pull-request.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
aio: ${{ steps.changes.outputs.aio }}
2323
steps:
2424
- name: Check changed files
25-
uses: dorny/path-filter@v2
25+
uses: dorny/paths-filter@v2
2626
id: changes
2727
with:
2828
# Filters are defined in this file.
@@ -58,9 +58,7 @@ jobs:
5858
needs:
5959
- check-changes
6060
uses: ./.github/workflows/stackhpc-build-kayobe-image.yml
61-
if:
62-
- github.repository == 'stackhpc/stackhpc-kayobe-config'
63-
- needs.check-changes.outputs.aio == 'true'
61+
if: needs.check-changes.outputs.aio == 'true'
6462

6563
all-in-one-centos-ovs:
6664
name: aio (CentOS OVS)
@@ -72,7 +70,6 @@ jobs:
7270
neutron_plugin: ovs
7371
OS_CLOUD: sms-lab-release
7472
secrets: inherit
75-
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
7673

7774
all-in-one-centos-ovn:
7875
name: aio (CentOS OVN)
@@ -84,7 +81,6 @@ jobs:
8481
neutron_plugin: ovn
8582
OS_CLOUD: sms-lab-release
8683
secrets: inherit
87-
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
8884

8985
all-in-one-rocky-ovs:
9086
name: aio (Rocky OVS)
@@ -101,7 +97,6 @@ jobs:
10197
vm_interface: ens3
10298
OS_CLOUD: sms-lab-release
10399
secrets: inherit
104-
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
105100

106101
all-in-one-rocky-ovn:
107102
name: aio (Rocky OVN)
@@ -118,7 +113,6 @@ jobs:
118113
vm_interface: ens3
119114
OS_CLOUD: sms-lab-release
120115
secrets: inherit
121-
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
122116

123117
all-in-one-ubuntu-ovs:
124118
name: aio (Ubuntu OVS)
@@ -132,7 +126,6 @@ jobs:
132126
vm_image: Ubuntu-20.04
133127
OS_CLOUD: sms-lab-release
134128
secrets: inherit
135-
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
136129

137130
all-in-one-ubuntu-ovn:
138131
name: aio (Ubuntu OVN)
@@ -146,4 +139,3 @@ jobs:
146139
vm_image: Ubuntu-20.04
147140
OS_CLOUD: sms-lab-release
148141
secrets: inherit
149-
if: github.repository == 'stackhpc/stackhpc-kayobe-config'

0 commit comments

Comments
 (0)