ci: only run aio_preview job on PR builds (#26030)

There can be no preview on non-PR builds, so there is no point in
running the job.

PR Close #26030
This commit is contained in:
George Kalpakas
2018-09-20 11:21:53 +03:00
committed by Kara Erickson
parent 41ac58ab7d
commit 48e73c1558
2 changed files with 9 additions and 3 deletions

View File

@ -9,13 +9,13 @@ readonly OUTPUT_FILE=$PROJECT_ROOT/$1
readonly PR_NUMBER=$2
readonly PR_LAST_SHA=$3
readonly deployedUrl=https://pr${PR_NUMBER}-${PR_LAST_SHA:0:7}.ngbuilds.io/
(
cd $PROJECT_ROOT/aio
# Build and store the app
yarn build
# Set deployedUrl as parameter in the opensearch description
# deployedUrl must end with /
yarn set-opensearch-url $deployedUrl