Update verify_chromatic.yml

Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
Charles de Dreuille
2025-10-18 14:09:00 +01:00
parent 52b647ee47
commit 8207e94c3d
+9 -1
View File
@@ -72,8 +72,16 @@ jobs:
echo "changes-text=**${{ steps.chromatic.outputs.changeCount }}** visual changes are waiting for review - [**Review changes in Chromatic**](${{ steps.chromatic.outputs.buildUrl }})" >> $GITHUB_OUTPUT
fi
- name: Post Chromatic Link in PR Comment
- name: Post Chromatic Results to Job Summary
if: github.event_name == 'pull_request' && steps.chromatic.outputs.url
run: |
echo "## 🎨 Visual Testing with Chromatic" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "- ${{ steps.prepare-message.outputs.changes-text }}" >> $GITHUB_STEP_SUMMARY
echo "- **${{ steps.chromatic.outputs.specCount}}** stories for **${{ steps.chromatic.outputs.componentCount}}** Components - [**Preview changes in Storybook**](${{ steps.chromatic.outputs.storybookUrl }})" >> $GITHUB_STEP_SUMMARY
- name: Post Chromatic Link in PR Comment
if: github.event_name == 'pull_request' && steps.chromatic.outputs.url && github.event.pull_request.head.repo.full_name == github.repository
uses: mshick/add-pr-comment@v2
with:
message: |