Skip to content

Commit 0d50263

Browse files
committed
chore: first collect all versions into array then output json array
1 parent 1b9fd7e commit 0d50263

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/dockerhub-release-matrix.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ jobs:
157157
- name: Collect versions
158158
id: collect_versions
159159
run: |
160-
echo "results[${{ strategy.job-index }}]=${{ steps.output_version.outputs.result }}" >> $GITHUB_OUTPUT
160+
versions=()
161+
versions+=("${{ steps.output_version.outputs.result }}")
162+
echo "matrix_results=[\"${versions[*]}\"]" >> $GITHUB_OUTPUT
161163
- name: Merge multi-arch manifests
162164
run: |
163165
docker buildx imagetools create -t ${{ steps.get_version.outputs.pg_version }} \

0 commit comments

Comments
 (0)