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 @@ -202,13 +202,14 @@ jobs:
202
202
then
203
203
versioned_builds=($(find . -type d -regex ".*[0-9-]" -maxdepth 1 | sed -E 's/^.\///'))
204
204
for versioned_build in "${versioned_builds[@]}"; do
205
- product=$(awk 'BEGIN{FS=OFS="-"}{NF--; print}' <<< $versioned_build)
205
+ read product version <<< "$(awk -F- '{print $1 " " $2}' <<<"$versioned_build")"
206
+
206
207
if [[ "${product}" == "redis-data-integration" ]]; then
207
208
gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/integrate/${product}" "gs://${BUCKET}/${versioned_build}/integrate/${product}"
208
- gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/integrate/${product}" "gs://${BUCKET}/docs/${versioned_build} /integrate/${product}"
209
+ gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/integrate/${product}/${version} " "gs://${BUCKET}/docs/$bucket_path /integrate/${product}/${version }"
209
210
else
210
211
gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/operate/${product}" "gs://${BUCKET}/${versioned_build}/operate/${product}"
211
- gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/operate/${product}" "gs://${BUCKET}/docs/${versioned_build} /operate/${product}"
212
+ gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/operate/${product}/${version} " "gs://${BUCKET}/docs/$bucket_path /operate/${product}/${version }"
212
213
fi
213
214
done
214
215
fi
You can’t perform that action at this time.
0 commit comments