From 775a8af6f126bb9e587cfb402d7179d2867c61ed Mon Sep 17 00:00:00 2001 From: chensuyue Date: Thu, 21 Nov 2024 19:42:34 +0800 Subject: [PATCH] fix issue Signed-off-by: chensuyue --- .github/workflows/_get-image-list.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_get-image-list.yml b/.github/workflows/_get-image-list.yml index eb806dcc60..20a57b84ab 100644 --- a/.github/workflows/_get-image-list.yml +++ b/.github/workflows/_get-image-list.yml @@ -45,7 +45,7 @@ jobs: docker_compose_yml=${{ github.workspace }}/.github/workflows/docker/compose/${service}-compose.yaml if [ -f "$docker_compose_yml" ]; then build_list=$(bash ${{ github.workspace }}/.github/workflows/scripts/get_cicd_list.sh "${{ inputs.mode }}" $docker_compose_yml) - image_list=$(echo $build_list| jq -R 'split(",")' | jq -s 'add') + image_list=$(echo ${image_list} | jq -s '.[0] + .[1] | unique' - <(echo ${build_list})) fi done fi