Skip to content

Commit fdfc4a9

Browse files
committed
fix publish-storybook action
1 parent 8a3857f commit fdfc4a9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/storybook.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ jobs:
1616
init:
1717
runs-on: ubuntu-latest
1818

19-
outputs:
20-
GITHUB_TOKEN: ${{ steps.get_installation_token.outputs.token }}
21-
2219
steps:
2320
- uses: tibdex/github-app-token@v1
2421
id: get_installation_token
@@ -152,7 +149,6 @@ jobs:
152149
publish-storybook:
153150
if: ${{ needs.prepare.outputs.HEROKU_RELEASE_STORYBOOK_APP_NAME == 'true' }}
154151
runs-on: ubuntu-latest
155-
156152
needs:
157153
- init
158154
- prepare
@@ -199,9 +195,15 @@ jobs:
199195
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}
200196
heroku builds:create --source-tar workspace/artifact/storybook.tar.gz -a ${PUBLISH_STORYBOOK_TO}
201197
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+
202204
- name: Set Github deployments to "success"
203205
env:
204-
GITHUB_TOKEN: ${{ needs.init.outputs.GITHUB_TOKEN }}
206+
GITHUB_TOKEN: ${{ steps.get_installation_token.outputs.token }}
205207
run: |-
206208
for row in $(jq -r '.[] | select(.url | contains("storybook")) | @base64' workspace/artifact/gh-deployments.json); do
207209
export STATUS_URL=$(echo ${row} | base64 --decode | jq -r ".status" | sed 's/https:\/\/api.github.com//')

0 commit comments

Comments
 (0)