@@ -149,8 +149,9 @@ jobs:
149149 needs : [load-env, setup, test-magex, warm-cache]
150150 if : |
151151 !cancelled() &&
152- needs.warm-cache.result != 'failure' &&
153- needs.warm-cache.result != 'cancelled' &&
152+ needs.setup.result == 'success' &&
153+ needs.test-magex.result == 'success' &&
154+ (needs.warm-cache.result == 'success' || needs.warm-cache.result == 'skipped') &&
154155 needs.setup.outputs.security-scans-enabled == 'true'
155156 permissions :
156157 contents : read # Read repository content for security scanning
@@ -176,8 +177,9 @@ jobs:
176177 needs : [load-env, setup, test-magex, warm-cache]
177178 if : |
178179 !cancelled() &&
179- needs.warm-cache.result != 'failure' &&
180- needs.warm-cache.result != 'cancelled'
180+ needs.setup.result == 'success' &&
181+ needs.test-magex.result == 'success' &&
182+ (needs.warm-cache.result == 'success' || needs.warm-cache.result == 'skipped')
181183 permissions :
182184 contents : read # Read repository content for code quality checks
183185 uses : ./.github/workflows/fortress-code-quality.yml
@@ -199,8 +201,9 @@ jobs:
199201 needs : [load-env, setup, test-magex, warm-cache]
200202 if : |
201203 !cancelled() &&
202- needs.warm-cache.result != 'failure' &&
203- needs.warm-cache.result != 'cancelled' &&
204+ needs.setup.result == 'success' &&
205+ needs.test-magex.result == 'success' &&
206+ (needs.warm-cache.result == 'success' || needs.warm-cache.result == 'skipped') &&
204207 needs.setup.outputs.pre-commit-enabled == 'true'
205208 permissions :
206209 contents : read # Read repository content for pre-commit checks
@@ -219,8 +222,9 @@ jobs:
219222 needs : [load-env, setup, test-magex, warm-cache]
220223 if : |
221224 !cancelled() &&
222- needs.warm-cache.result != 'failure' &&
223- needs.warm-cache.result != 'cancelled'
225+ needs.setup.result == 'success' &&
226+ needs.test-magex.result == 'success' &&
227+ (needs.warm-cache.result == 'success' || needs.warm-cache.result == 'skipped')
224228 permissions :
225229 contents : write # Write repository content and push to gh-pages branch for test execution
226230 pull-requests : write # Required: Coverage workflow needs to create PR comments
@@ -259,8 +263,9 @@ jobs:
259263 needs : [load-env, setup, test-magex, warm-cache]
260264 if : |
261265 !cancelled() &&
262- needs.warm-cache.result != 'failure' &&
263- needs.warm-cache.result != 'cancelled' &&
266+ needs.setup.result == 'success' &&
267+ needs.test-magex.result == 'success' &&
268+ (needs.warm-cache.result == 'success' || needs.warm-cache.result == 'skipped') &&
264269 needs.setup.outputs.benchmarks-enabled == 'true'
265270 permissions :
266271 contents : read # Read repository content for benchmarking
0 commit comments