Skip to content

Commit a00f83a

Browse files
committed
Revert "Fix CICD workflow strategy running condition (opea-project#1533)"
This reverts commit 6d781f7.
1 parent 243a8ed commit a00f83a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/_helm-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
9898
helm-test:
9999
needs: [get-test-case]
100-
if: ${{ needs.get-test-case.outputs.value_files != '[]' }}
100+
if: ${{ fromJSON(needs.get-test-case.outputs.value_files).length != 0 }}
101101
strategy:
102102
matrix:
103103
value_file: ${{ fromJSON(needs.get-test-case.outputs.value_files) }}

.github/workflows/manual-docker-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
scan-docker:
4848
needs: get-image-list
4949
runs-on: "docker-build-${{ inputs.node }}"
50-
if: ${{ needs.get-image-list.outputs.matrix != '' }}
50+
if: ${{ fromJSON(needs.get-image-list.outputs.matrix).length != 0 }}
5151
strategy:
5252
matrix:
5353
image: ${{ fromJson(needs.get-image-list.outputs.matrix) }}

.github/workflows/manual-reset-local-registry.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
3434
clean-up:
3535
needs: get-build-matrix
36-
if: ${{ needs.get-image-list.outputs.matrix != '' }}
36+
if: ${{ fromJSON(needs.get-build-matrix.outputs.nodes).length != 0 }}
3737
strategy:
3838
matrix:
3939
node: ${{ fromJson(needs.get-build-matrix.outputs.nodes) }}
@@ -48,7 +48,7 @@ jobs:
4848
4949
build:
5050
needs: [get-build-matrix, clean-up]
51-
if: ${{ needs.get-image-list.outputs.matrix != '' }}
51+
if: ${{ fromJSON(needs.get-build-matrix.outputs.nodes).length != 0 }}
5252
strategy:
5353
matrix:
5454
example: ${{ fromJson(needs.get-build-matrix.outputs.examples) }}

.github/workflows/push-image-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
image-build:
2626
needs: job1
27-
if: ${{ needs.job1.outputs.run_matrix != '{"include":[]}' }}
27+
if: ${{ fromJSON(needs.job1.outputs.run_matrix).length != 0 }}
2828
strategy:
2929
matrix: ${{ fromJSON(needs.job1.outputs.run_matrix) }}
3030
fail-fast: false

0 commit comments

Comments
 (0)