File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8888 for c_stack in $current_stacks; do
8989 c_stack_name=$(echo "$c_stack" | jq -r '.name')
9090 stack_exists=$(jq --arg c_stack_name "$c_stack_name" '.images[] | select(.name == $c_stack_name)' ./previous_images.json)
91- c_stack=$(jq --argjson c_stack "$c_stack" '. + {is_new: false}' <<< "$c_stack")
91+ is_new=false
92+ if [[ -z $stack_exists ]]; then
93+ is_new=true
94+ fi
95+ c_stack=$(jq --argjson c_stack "$c_stack" --argjson is_new "$is_new" '. + {is_new: $is_new}' <<< "$c_stack")
9296 stacks=$(jq --argjson c_stack "$c_stack" '. + [$c_stack]' <<< "$stacks")
9397 done
9498
@@ -650,6 +654,7 @@ jobs:
650654 needs : [ create_stack, preparation ]
651655 runs-on : ubuntu-22.04
652656 strategy :
657+ fail-fast : false
653658 matrix :
654659 stacks : ${{ fromJSON(needs.preparation.outputs.stacks) }}
655660 arch : ${{ fromJSON(needs.preparation.outputs.architectures) }}
You can’t perform that action at this time.
0 commit comments