File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -226,13 +226,14 @@ jobs:
226226 then
227227 versioned_builds=($(find . -type d -regex ".*[0-9-]" -maxdepth 1 | sed -E 's/^.\///'))
228228 for versioned_build in "${versioned_builds[@]}"; do
229- product=$(awk 'BEGIN{FS=OFS="-"}{NF--; print}' <<< $versioned_build)
229+ read product version <<< "$(awk -F- '{print $1 " " $2}' <<<"$versioned_build")"
230+
230231 if [[ "${product}" == "redis-data-integration" ]]; then
231232 gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/integrate/${product}" "gs://${BUCKET}/${bucket_path}/${versioned_build}/integrate/${product}"
232- gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/integrate/${product}" "gs://${BUCKET}/docs/${bucket_path}/${versioned_build}/integrate/${product }"
233+ gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/integrate/${product}/${version} " "gs://${BUCKET}/docs/${bucket_path}/integrate/${product}/${version }"
233234 else
234235 gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/operate/${product}" "gs://${BUCKET}/${bucket_path}/${versioned_build}/operate/${product}"
235- gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/operate/${product}" "gs://${BUCKET}/docs/${bucket_path}/${versioned_build}/operate/${product }"
236+ gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/operate/${product}/${version} " "gs://${BUCKET}/docs/${bucket_path}/operate/${product}/${version }"
236237 fi
237238 done
238239 fi
You can’t perform that action at this time.
0 commit comments