From 635c92e338ea197e0a2acc2ceed98e853ce10639 Mon Sep 17 00:00:00 2001 From: Mikhail Korolev Date: Mon, 20 Nov 2023 20:14:18 +0100 Subject: [PATCH] [FX-4380] Restore Storybook temploy link --- .changeset/clean-yaks-punch.md | 7 +++++++ deploy-storybook/action.yml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/clean-yaks-punch.md diff --git a/.changeset/clean-yaks-punch.md b/.changeset/clean-yaks-punch.md new file mode 100644 index 0000000..ecbf8a2 --- /dev/null +++ b/.changeset/clean-yaks-punch.md @@ -0,0 +1,7 @@ +--- +'@toptal/davinci-github-actions': minor +--- + +### deploy-storybook + +- fixed storybook temploy link diff --git a/deploy-storybook/action.yml b/deploy-storybook/action.yml index d793af9..ac0aba4 100644 --- a/deploy-storybook/action.yml +++ b/deploy-storybook/action.yml @@ -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 })