Skip to content

Commit 4d875ff

Browse files
committed
fix logic when split units is empty
1 parent fda797b commit 4d875ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,13 @@ jobs:
247247
JOB_NAME: units-8-runtime-${{matrix.java}}
248248
working-directory: ${{matrix.package}}
249249
required:
250-
needs: [ changes, split-units, split-units-8 ]
250+
needs: [ changes, split-units ]
251251
name: conditional-required-check
252252
if: ${{ always() }} # Always run even if any "needs" jobs fail
253253
runs-on: ubuntu-22.04
254254
steps:
255255
- name: Fail if any previous failure
256-
if: ${{ contains(needs.*.result, 'failure') }}
256+
if: ${{ needs.changes.outputs.packages != '[]' && contains(needs.*.result, 'failure') }}
257257
run: exit 1
258258
- name: Success otherwise
259259
run: echo "Success!"

0 commit comments

Comments
 (0)