File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ output_folder=".ci/output"
4040codegen_folder=" .ci/output"
4141OUTPUT_DIR=" $repo /${output_folder} "
4242REPO_BINDING=" ${OUTPUT_DIR} :/sln/${output_folder} "
43+ WORKFLOW=" ${WORKFLOW-staging} "
4344mkdir -p " $OUTPUT_DIR "
4445
4546echo -e " \033[34;1mINFO:\033[0m PRODUCT ${product} \033[0m"
@@ -139,7 +140,11 @@ if [[ "$CMD" == "assemble" ]]; then
139140 if compgen -G " .ci/output/*" > /dev/null; then
140141
141142 # Tarball everything up in .ci/output
142- cd $repo /.ci/output && tar -czvf elasticsearch-py-$VERSION .tar.gz * && cd -
143+ if [[ " $WORKFLOW " == ' snapshot' ]]; then
144+ cd $repo /.ci/output && tar -czvf elasticsearch-py-$VERSION -SNAPSHOT.tar.gz * && cd -
145+ else
146+ cd $repo /.ci/output && tar -czvf elasticsearch-py-$VERSION .tar.gz * && cd -
147+ fi
143148
144149 echo -e " \033[32;1mTARGET: successfully assembled client v$VERSION \033[0m"
145150 exit 0
You can’t perform that action at this time.
0 commit comments