File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 16
16
init :
17
17
runs-on : ubuntu-latest
18
18
19
- outputs :
20
- GITHUB_TOKEN : ${{ steps.get_installation_token.outputs.token }}
21
-
22
19
steps :
23
20
- uses : tibdex/github-app-token@v1
24
21
id : get_installation_token
@@ -152,7 +149,6 @@ jobs:
152
149
publish-storybook :
153
150
if : ${{ needs.prepare.outputs.HEROKU_RELEASE_STORYBOOK_APP_NAME == 'true' }}
154
151
runs-on : ubuntu-latest
155
-
156
152
needs :
157
153
- init
158
154
- prepare
@@ -199,9 +195,15 @@ jobs:
199
195
heroku buildpacks -a ${PUBLISH_STORYBOOK_TO} | 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 ${PUBLISH_STORYBOOK_TO}
200
196
heroku builds:create --source-tar workspace/artifact/storybook.tar.gz -a ${PUBLISH_STORYBOOK_TO}
201
197
198
+ - uses : tibdex/github-app-token@v1
199
+ id : get_installation_token
200
+ with :
201
+ app_id : 244972
202
+ private_key : ${{ secrets.DSE_CI_APP_KEY }}
203
+
202
204
- name : Set Github deployments to "success"
203
205
env :
204
- GITHUB_TOKEN : ${{ needs.init .outputs.GITHUB_TOKEN }}
206
+ GITHUB_TOKEN : ${{ steps.get_installation_token .outputs.token }}
205
207
run : |-
206
208
for row in $(jq -r '.[] | select(.url | contains("storybook")) | @base64' workspace/artifact/gh-deployments.json); do
207
209
export STATUS_URL=$(echo ${row} | base64 --decode | jq -r ".status" | sed 's/https:\/\/api.github.com//')
You can’t perform that action at this time.
0 commit comments