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:

committed by
Kara Erickson

parent
41ac58ab7d
commit
48e73c1558
@ -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
|
||||
|
Reference in New Issue
Block a user