Skip to content

Commit 6ced128

Browse files
ZePan110Chingis Yundunov
authored and
Chingis Yundunov
committed
Fix nightly triggered exceptions (opea-project#1505)
Signed-off-by: ZePan110 <ze.pan@intel.com> Signed-off-by: Chingis Yundunov <YundunovCN@sibedge.com>
1 parent 61c6278 commit 6ced128

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

.github/workflows/_get-image-list.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,4 @@ jobs:
5151
echo "print image list..."
5252
echo "$image_list" | jq . | jq -r '.[]'
5353
echo "end of image list..."
54-
# echo "matrix=$(echo ${image_list} | jq -c '.')" >> $GITHUB_OUTPUT
55-
echo "matrix=$(echo "" | jq -c '.')" >> $GITHUB_OUTPUT
54+
echo "matrix=$(echo ${image_list} | jq -c '.')" >> $GITHUB_OUTPUT

.github/workflows/_run-docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
9292
compose-test:
9393
needs: [get-test-case]
94-
if: ${{ fromJSON(needs.get-test-case.outputs.test_cases).length != 0 }}
94+
if: ${{ fromJSON(needs.get-test-case.outputs.test_cases).length != 0 || needs.get-test-case.outputs.test_cases != '' }}
9595
strategy:
9696
matrix:
9797
test_case: ${{ fromJSON(needs.get-test-case.outputs.test_cases) }}

.github/workflows/nightly-docker-build-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
3535
build-and-test:
3636
needs: get-build-matrix
37-
if: ${{ fromJSON(needs.get-build-matrix.outputs.examples_json).length != 0 }}
37+
if: ${{ needs.get-build-matrix.outputs.examples_json != '' }}
3838
strategy:
3939
matrix:
4040
example: ${{ fromJSON(needs.get-build-matrix.outputs.examples_json) }}
@@ -54,7 +54,7 @@ jobs:
5454

5555
publish:
5656
needs: [get-build-matrix, get-image-list, build-and-test]
57-
if: ${{ fromJSON(needs.get-image-list.outputs.matrix).length != 0 }}
57+
if: ${{ needs.get-image-list.outputs.matrix != '' }}
5858
strategy:
5959
matrix:
6060
image: ${{ fromJSON(needs.get-image-list.outputs.matrix) }}

.github/workflows/pr-docker-compose-e2e.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
strategy:
3737
matrix: ${{ fromJSON(needs.get-test-matrix.outputs.run_matrix) }}
3838
fail-fast: false
39-
if: ${{ !github.event.pull_request.draft }}
4039
uses: ./.github/workflows/_run-docker-compose.yml
4140
with:
4241
registry: "opea"

0 commit comments

Comments
 (0)