Skip to content

Commit

Permalink
Update assemble task - SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 7, 2022
1 parent d411230 commit 72f102d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .ci/make.sh
Expand Up @@ -40,6 +40,7 @@ output_folder=".ci/output"
codegen_folder=".ci/output"
OUTPUT_DIR="$repo/${output_folder}"
REPO_BINDING="${OUTPUT_DIR}:/sln/${output_folder}"
WORKFLOW="${WORKFLOW-staging}"
mkdir -p "$OUTPUT_DIR"

echo -e "\033[34;1mINFO:\033[0m PRODUCT ${product}\033[0m"
Expand Down Expand Up @@ -139,7 +140,11 @@ if [[ "$CMD" == "assemble" ]]; then
if compgen -G ".ci/output/*" > /dev/null; then

# Tarball everything up in .ci/output
cd $repo/.ci/output && tar -czvf elasticsearch-py-$VERSION.tar.gz * && cd -
if [[ "$WORKFLOW" == 'snapshot' ]]; then
cd $repo/.ci/output && tar -czvf elasticsearch-py-$VERSION-SNAPSHOT.tar.gz * && cd -
else
cd $repo/.ci/output && tar -czvf elasticsearch-py-$VERSION.tar.gz * && cd -
fi

echo -e "\033[32;1mTARGET: successfully assembled client v$VERSION\033[0m"
exit 0
Expand Down

0 comments on commit 72f102d

Please sign in to comment.