diff --git a/.github/workflows/ci-pipeline-branch.yml b/.github/workflows/ci-pipeline-branch.yml index 6ae7ea6b6ebc1..50a85de75fdf5 100644 --- a/.github/workflows/ci-pipeline-branch.yml +++ b/.github/workflows/ci-pipeline-branch.yml @@ -176,7 +176,7 @@ jobs: steps: - name: Check Result run: | - if [[ "${{ needs.thirdparty-update.result }} == 'failure' ]]; then + if [[ "${{ needs.thirdparty-update.result }}" == 'failure' ]]; then echo "::error:: Thirdparty Update Error!" exit 1 fi @@ -191,9 +191,9 @@ jobs: id: info if: needs.thirdparty-update.result == 'success' run: | - image_cache_id=$(cat "./outputs/THIRDPARTY-RESULT-centos7/image_cache.info") + image_cache_id=$(cat "./outputs/THIRDPARTY-RESULT-centos7/image_cache.info" || echo "") echo "centos7_image_cache_id=${image_cache_id}" >> $GITHUB_OUTPUT - image_cache_id=$(cat "./outputs/THIRDPARTY-RESULT-ubuntu/image_cache.info") + image_cache_id=$(cat "./outputs/THIRDPARTY-RESULT-ubuntu/image_cache.info" || echo "") echo "ubuntu_image_cache_id=${image_cache_id}" >> $GITHUB_OUTPUT be-ut: diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index be43e90bbe2aa..01ddc3c588d00 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -201,9 +201,9 @@ jobs: id: info if: needs.thirdparty-update.result == 'success' run: | - image_cache_id=$(cat "./outputs/THIRDPARTY-RESULT-centos7/image_cache.info") + image_cache_id=$(cat "./outputs/THIRDPARTY-RESULT-centos7/image_cache.info" || echo "") echo "centos7_image_cache_id=${image_cache_id}" >> $GITHUB_OUTPUT - image_cache_id=$(cat "./outputs/THIRDPARTY-RESULT-ubuntu/image_cache.info") + image_cache_id=$(cat "./outputs/THIRDPARTY-RESULT-ubuntu/image_cache.info" || echo "") echo "ubuntu_image_cache_id=${image_cache_id}" >> $GITHUB_OUTPUT be-ut: