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 @@ -33,6 +33,7 @@ TASK=$1
33
33
TASK_ARGS=()
34
34
VERSION=$2
35
35
STACK_VERSION=$VERSION
36
+ WORKFLOW=${WORKFLOW-staging}
36
37
set -euo pipefail
37
38
38
39
product=" elastic/elasticsearch-php"
@@ -142,7 +143,11 @@ if [[ "$CMD" == "assemble" ]]; then
142
143
rsync -ar --exclude=.ci --exclude=.git --filter=' :- .gitignore' " $PWD " " ${output_folder} /."
143
144
144
145
if compgen -G " .ci/output/*" > /dev/null; then
145
- cd $repo /.ci/output && tar -czf elasticsearch-php-$VERSION .tar.gz * && cd -
146
+ if [[ " $WORKFLOW " == " snapshot" ]]; then
147
+ cd $repo /.ci/output && tar -czf elasticsearch-php-$VERSION -SNAPSHOT.tar.gz * && cd -
148
+ else
149
+ cd $repo /.ci/output && tar -czf elasticsearch-php-$VERSION .tar.gz * && cd -
150
+ fi
146
151
rm -Rf " ${repo} /.ci/output/elasticsearch-php"
147
152
echo -e " \033[32;1mTARGET: successfully assembled client v$VERSION \033[0m"
148
153
exit 0
You can’t perform that action at this time.
0 commit comments