Fix nightly triggered exceptions (#1505)
Signed-off-by: ZePan110 <ze.pan@intel.com>
This commit is contained in:
3
.github/workflows/_get-image-list.yml
vendored
3
.github/workflows/_get-image-list.yml
vendored
@@ -51,5 +51,4 @@ jobs:
|
||||
echo "print image list..."
|
||||
echo "$image_list" | jq . | jq -r '.[]'
|
||||
echo "end of image list..."
|
||||
# echo "matrix=$(echo ${image_list} | jq -c '.')" >> $GITHUB_OUTPUT
|
||||
echo "matrix=$(echo "" | jq -c '.')" >> $GITHUB_OUTPUT
|
||||
echo "matrix=$(echo ${image_list} | jq -c '.')" >> $GITHUB_OUTPUT
|
||||
|
||||
2
.github/workflows/_run-docker-compose.yml
vendored
2
.github/workflows/_run-docker-compose.yml
vendored
@@ -91,7 +91,7 @@ jobs:
|
||||
|
||||
compose-test:
|
||||
needs: [get-test-case]
|
||||
if: ${{ fromJSON(needs.get-test-case.outputs.test_cases).length != 0 }}
|
||||
if: ${{ fromJSON(needs.get-test-case.outputs.test_cases).length != 0 || needs.get-test-case.outputs.test_cases != '' }}
|
||||
strategy:
|
||||
matrix:
|
||||
test_case: ${{ fromJSON(needs.get-test-case.outputs.test_cases) }}
|
||||
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
|
||||
build-and-test:
|
||||
needs: get-build-matrix
|
||||
if: ${{ fromJSON(needs.get-build-matrix.outputs.examples_json).length != 0 }}
|
||||
if: ${{ needs.get-build-matrix.outputs.examples_json != '' }}
|
||||
strategy:
|
||||
matrix:
|
||||
example: ${{ fromJSON(needs.get-build-matrix.outputs.examples_json) }}
|
||||
@@ -54,7 +54,7 @@ jobs:
|
||||
|
||||
publish:
|
||||
needs: [get-build-matrix, get-image-list, build-and-test]
|
||||
if: ${{ fromJSON(needs.get-image-list.outputs.matrix).length != 0 }}
|
||||
if: ${{ needs.get-image-list.outputs.matrix != '' }}
|
||||
strategy:
|
||||
matrix:
|
||||
image: ${{ fromJSON(needs.get-image-list.outputs.matrix) }}
|
||||
|
||||
1
.github/workflows/pr-docker-compose-e2e.yml
vendored
1
.github/workflows/pr-docker-compose-e2e.yml
vendored
@@ -36,7 +36,6 @@ jobs:
|
||||
strategy:
|
||||
matrix: ${{ fromJSON(needs.get-test-matrix.outputs.run_matrix) }}
|
||||
fail-fast: false
|
||||
if: ${{ !github.event.pull_request.draft }}
|
||||
uses: ./.github/workflows/_run-docker-compose.yml
|
||||
with:
|
||||
registry: "opea"
|
||||
|
||||
Reference in New Issue
Block a user