File tree Expand file tree Collapse file tree 1 file changed +29
-7
lines changed Expand file tree Collapse file tree 1 file changed +29
-7
lines changed Original file line number Diff line number Diff line change @@ -99,14 +99,36 @@ jobs:
9999 echo "${{ matrix.version }}" >> /tmp/versions/all_versions.txt
100100 echo "supabase/postgres:${{ steps.settings.outputs.postgres-version }}" >> /tmp/versions/all_tags.txt
101101
102- # Convert to JSON arrays with unique values
103- VERSIONS=$(sort -u /tmp/versions/all_versions.txt | jq -R . | jq -s .)
104- TAGS=$(sort -u /tmp/versions/all_tags.txt | jq -R . | jq -s .)
102+ # Create JSON arrays with manual string construction
103+ versions_array="["
104+ first=true
105+ while IFS= read -r version; do
106+ if [ "$first" = true ]; then
107+ first=false
108+ else
109+ versions_array+=","
110+ fi
111+ versions_array+="\"$version\""
112+ done < <(sort -u /tmp/versions/all_versions.txt)
113+ versions_array+="]"
105114
106- # Set outputs
107- echo "versions=$VERSIONS" >> $GITHUB_OUTPUT
108- echo "image_tags=$TAGS" >> $GITHUB_OUTPUT
109-
115+ tags_array="["
116+ first=true
117+ while IFS= read -r tag; do
118+ if [ "$first" = true ]; then
119+ first=false
120+ else
121+ tags_array+=","
122+ fi
123+ tags_array+="\"$tag\""
124+ done < <(sort -u /tmp/versions/all_tags.txt)
125+ tags_array+="]"
126+
127+ # Set outputs with proper delimiter
128+ {
129+ echo "versions=${versions_array}"
130+ echo "image_tags=${tags_array}"
131+ } >> $GITHUB_OUTPUT
110132 build_release_image :
111133 needs : build
112134 strategy :
You can’t perform that action at this time.
0 commit comments