@@ -64,18 +64,20 @@ commands:
64
64
if [[ "${CIRCLE_BRANCH}" = "${CURRENT_DEFAULT_BRANCH}" ]] ; then
65
65
echo "Publishing to UPCOMING..."
66
66
echo 'export HEROKU_APP_NAME=${HEROKU_APP_UPCOMING}' >> $BASH_ENV
67
+ echo 'export HEROKU_RELEASE_STORYBOOK_APP_NAME=storybook-upcoming' >> $BASH_ENV
67
68
elif [[ ${CIRCLE_TAG} =~ ^v[0-9]+\.[0-9]+\.[0-9]+-.+$ ]] ; then
68
69
echo "Publishing to CORE-MAIN..."
69
70
echo 'export HEROKU_APP_NAME=${HEROKU_APP_CORE_MAIN}' >> $BASH_ENV
71
+ echo 'export HEROKU_RELEASE_STORYBOOK_APP_NAME=storybook-core-main' >> $BASH_ENV
70
72
elif [[ ${CIRCLE_TAG} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] ; then
71
73
echo "Publishing to CORE-PATCH..."
72
74
echo 'export HEROKU_APP_NAME=${HEROKU_APP_CORE_PATCH}' >> $BASH_ENV
75
+ echo 'export HEROKU_RELEASE_STORYBOOK_APP_NAME=storybook-core-patch' >> $BASH_ENV
73
76
else
74
77
echo "Publishing to pull-request review app..."
75
78
echo 'export HEROKU_APP_NAME=slds-review-site-pr-${PR_NUMBER}' >> $BASH_ENV
76
79
echo 'export HEROKU_RELEASE_STORYBOOK_APP_NAME=true' >> $BASH_ENV
77
80
fi
78
- echo 'export HEROKU_RELEASE_STORYBOOK_APP_NAME=${HEROKU_APP_NAME}' >> $BASH_ENV
79
81
source $BASH_ENV
80
82
echo $HEROKU_APP_NAME > workspace/heroku-app-name.txt
81
83
echo $HEROKU_RELEASE_STORYBOOK_APP_NAME > workspace/heroku-release-storybook-app-name.txt
@@ -200,7 +202,11 @@ jobs:
200
202
- run :
201
203
name : Get Github pull-request number
202
204
command : |
203
- gh api /repos/salesforce-ux/design-system-internal/commits/${CIRCLE_SHA1}/pulls -H "Accept: application/vnd.github.groot-preview+json" | jq -r '.[].number' > workspace/gh-pr-num.txt && cat workspace/gh-pr-num.txt
205
+ gh pr view --json number,state,title,url > gh-pull-data.json
206
+ echo "=== Github pull-request API results ==="
207
+ cat gh-pull-data.json
208
+ echo "---------------------------------------"
209
+ cat gh-pull-data.json | jq -r '.number' > workspace/gh-pr-num.txt && cat workspace/gh-pr-num.txt
204
210
205
211
- persist_to_workspace :
206
212
root : workspace
0 commit comments