Skip to content

Commit 39fea1a

Browse files
authored
chore(merge): 2.18.0-rc.1 Summer 22 ➡️ Winter 23 (#5049)
2 parents 7b4a5b7 + 01a5028 commit 39fea1a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.circleci/config.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,11 @@ jobs:
445445
export PUBLISH_STORYBOOK_TO=${HEROKU_RELEASE_STORYBOOK_APP_NAME}
446446
else
447447
export PUBLISH_STORYBOOK_TO=${REVIEW_APP_NAME}
448+
export EXISTING_REVIEW_APP=$(heroku apps:info -a ${REVIEW_APP_NAME} --json | jq -r ".app.name")
449+
if [[ ${EXISTING_REVIEW_APP} == "" ]]; then
450+
heroku apps:create ${REVIEW_APP_NAME} -t sfdc-uxe-slds
451+
heroku pipelines:add slds -a ${REVIEW_APP_NAME} -s development
452+
fi
448453
fi
449454
echo "=============================="
450455
echo ${PUBLISH_STORYBOOK_TO}
@@ -462,6 +467,11 @@ jobs:
462467
gh api ${STATUS_URL} -f state=success -f environment_url=${SITE_URL} -H "Accept: application/vnd.github.ant-man-preview+json"
463468
done
464469
470+
- run:
471+
name: Create comment with link to review app
472+
command: |
473+
gh api --method POST -H "Accept: application/vnd.github.v3+json" /repos/salesforce-ux/design-system-internal/issues/${PR_NUMBER}/comments -f body="[Storybook Review app](https://${REVIEW_APP_NAME}.herokuapp.com) is ready for [${CIRCLE_SHA1}](https://github.com/salesforce-ux/design-system-internal/commit/${CIRCLE_SHA1})"
474+
465475
# Build & publish SLDS site (review app or upcoming/core-main/core-patch)
466476
publish-site:
467477
executor: slds-executor
@@ -517,6 +527,11 @@ jobs:
517527
echo "=============================="
518528
echo ${HEROKU_APP_NAME}
519529
echo "=============================="
530+
export EXISTING_REVIEW_APP=$(heroku apps:info -a ${HEROKU_APP_NAME} --json | jq -r ".app.name")
531+
if [[ ${EXISTING_REVIEW_APP} == "" ]]; then
532+
heroku apps:create ${HEROKU_APP_NAME} -t sfdc-uxe-slds
533+
heroku pipelines:add slds-site-previews -a ${HEROKU_APP_NAME} -s development
534+
fi
520535
heroku buildpacks -a ${HEROKU_APP_NAME} | grep "https://github.com/salesforce-ux/heroku-buildpack-nginx.git#dse" || heroku buildpacks:set https://github.com/salesforce-ux/heroku-buildpack-nginx.git#dse -a ${HEROKU_APP_NAME}
521536
heroku builds:create --source-tar site-next.tar.gz -a ${HEROKU_APP_NAME}
522537
@@ -530,6 +545,14 @@ jobs:
530545
gh api ${STATUS_URL} -f state=success -f environment_url=${SITE_URL} -H "Accept: application/vnd.github.ant-man-preview+json"
531546
done
532547
548+
- set-github-pr-number
549+
- run:
550+
name: Create comment with link to review app
551+
command: |
552+
export HEROKU_APP_NAME=$(cat workspace/heroku-app-name.txt)
553+
554+
gh api --method POST -H "Accept: application/vnd.github.v3+json" /repos/salesforce-ux/design-system-internal/issues/${PR_NUMBER}/comments -f body="[SLDS Site Review app](https://${HEROKU_APP_NAME}.herokuapp.com) is ready for [${CIRCLE_SHA1}](https://github.com/salesforce-ux/design-system-internal/commit/${CIRCLE_SHA1})"
555+
533556
vrt-init:
534557
executor: slds-executor
535558
resource_class: small

0 commit comments

Comments
 (0)