Fix cd workflow condition (#1588)
Fix cd workflow condition Signed-off-by: chensuyue <suyue.chen@intel.com> Co-authored-by: ZePan110 <ze.pan@intel.com>
This commit is contained in:
@@ -76,7 +76,7 @@ jobs:
|
|||||||
|
|
||||||
build-deploy-gmc:
|
build-deploy-gmc:
|
||||||
needs: [get-test-matrix]
|
needs: [get-test-matrix]
|
||||||
if: ${{ fromJSON(inputs.deploy_gmc) }} && ${{ fromJSON(needs.get-test-matrix.outputs.nodes).length != 0 }}
|
if: ${{ fromJSON(inputs.deploy_gmc) }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: ${{ fromJson(needs.get-test-matrix.outputs.nodes) }}
|
node: ${{ fromJson(needs.get-test-matrix.outputs.nodes) }}
|
||||||
@@ -90,7 +90,7 @@ jobs:
|
|||||||
|
|
||||||
run-examples:
|
run-examples:
|
||||||
needs: [get-test-matrix, build-deploy-gmc]
|
needs: [get-test-matrix, build-deploy-gmc]
|
||||||
if: always() && ${{ fromJSON(needs.get-test-matrix.outputs.examples).length != 0 }}
|
if: always()
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
example: ${{ fromJson(needs.get-test-matrix.outputs.examples) }}
|
example: ${{ fromJson(needs.get-test-matrix.outputs.examples) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user