File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -114,10 +114,12 @@ jobs:
114114 tags_array="["
115115 first=true
116116
117- # For each version in the matrix config
118- for row in $(echo '${{ needs.prepare.outputs.matrix_config }}' | jq -cr '.include[]'); do
119- version=$(echo $row | jq -r '.version')
120-
117+ # Extract versions directly from matrix config using grep/sed
118+ matrix_json='${{ needs.prepare.outputs.matrix_config }}'
119+ versions=$(echo "$matrix_json" | grep -o '"version":"[^"]*"' | sed 's/"version":"\(.*\)"/\1/')
120+
121+ # For each version
122+ while read -r version; do
121123 if [ "$first" = true ]; then
122124 first=false
123125 else
@@ -135,7 +137,7 @@ jobs:
135137
136138 versions_array+="\"${version}\""
137139 tags_array+="\"supabase/postgres:${PG_VERSION}\""
138- done
140+ done <<< "$versions"
139141
140142 versions_array+="]"
141143 tags_array+="]"
You can’t perform that action at this time.
0 commit comments