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:
226
226
then
227
227
versioned_builds=($(find . -type d -regex ".*[0-9-]" -maxdepth 1 | sed -E 's/^.\///'))
228
228
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
+
230
231
if [[ "${product}" == "redis-data-integration" ]]; then
231
232
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 }"
233
234
else
234
235
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 }"
236
237
fi
237
238
done
238
239
fi
You can’t perform that action at this time.
0 commit comments