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:
114
114
tags_array="["
115
115
first=true
116
116
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
121
123
if [ "$first" = true ]; then
122
124
first=false
123
125
else
@@ -135,7 +137,7 @@ jobs:
135
137
136
138
versions_array+="\"${version}\""
137
139
tags_array+="\"supabase/postgres:${PG_VERSION}\""
138
- done
140
+ done <<< "$versions"
139
141
140
142
versions_array+="]"
141
143
tags_array+="]"
You can’t perform that action at this time.
0 commit comments