Skip to content

Commit 7e589c5

Browse files
committed
refactor: chromatic yml deploy url fix (#172)
1 parent 9b7f478 commit 7e589c5

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/chromatic.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,16 @@ jobs:
2121
autoAcceptChanges: true
2222
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
2323

24-
- name: Save PR number and Chromatic build outputs
25-
run: |
26-
mkdir -p ./pr
27-
echo "${{ github.event.pull_request.number }}" > ./pr/prNumber
28-
echo "${{ steps.chromatic.outputs.storybookUrl }}" > ./pr/storybookUrl
29-
echo "${{ steps.chromatic.outputs.buildUrl }}" > ./pr/buildUrl
24+
- name: comment PR
25+
uses: thollander/actions-comment-pull-request@v1
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.TOKEN }}
28+
with:
29+
message: "🚀storybook: ${{ steps.chromatic.outputs.storybookUrl }}"
30+
31+
# - name: Save PR number and Chromatic build outputs
32+
# run: |
33+
# mkdir -p ./pr
34+
# echo "${{ github.event.pull_request.number }}" > ./pr/prNumber
35+
# echo "${{ steps.chromatic.outputs.storybookUrl }}" > ./pr/storybookUrl
36+
# echo "${{ steps.chromatic.outputs.buildUrl }}" > ./pr/buildUrl

0 commit comments

Comments
 (0)