Skip to content

Commit

Permalink
[FX-4380] Restore Storybook temploy link
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrl committed Nov 20, 2023
1 parent 8aa2c06 commit 635c92e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/clean-yaks-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@toptal/davinci-github-actions': minor
---

### deploy-storybook

- fixed storybook temploy link
2 changes: 1 addition & 1 deletion deploy-storybook/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ runs:
script: |
const trimSuffix = (name) => name.endsWith('-') ? name.slice(0, -1) : name
const { issue: { number: issue_number }, repo: { owner, repo } } = context
const name = trimSuffix(['${{ env.RELEASE }}', '${{ steps.repo.outputs.repository_name }}-storybook'].join('-').substring(0, 63))
const name = trimSuffix(['${{ env.RELEASE }}', '${{ steps.repo.outputs.repository_name }}'].join('-').substring(0, 63))
const body = `Storybook temploy is available at https://${name}.toptal.rocks :tada:`
const number = issue_number || ${{ env.PR_NUMBER }}
github.rest.issues.createComment({ issue_number: number, owner, repo, body })

0 comments on commit 635c92e

Please sign in to comment.