Skip to content

Commit 5198728

Browse files
committed
chore: add playwright job summary
1 parent def3ccf commit 5198728

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/playwright.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,21 @@ jobs:
9494
- name: Deploy
9595
id: deployment
9696
uses: actions/deploy-pages@v4
97+
- name: Output Job Summary
98+
run: |
99+
if [ "${{ github.event_name }}" == "pull_request" ]; then
100+
BRANCH=${{ github.head_ref }}
101+
else
102+
BRANCH=${{ github.ref_name }}
103+
fi
104+
echo "## 🚀 Playwright Test Run Summary 🚀">> $GITHUB_STEP_SUMMARY
105+
echo "✅ Deployed to GitHub Pages Successful!" >> $GITHUB_STEP_SUMMARY
106+
echo "" >> $GITHUB_STEP_SUMMARY
107+
echo "👤 **Triggered by**: @${{ github.actor }}" >> $GITHUB_STEP_SUMMARY
108+
echo "" >> $GITHUB_STEP_SUMMARY
109+
echo "### 📄 Commit Info" >> $GITHUB_STEP_SUMMARY
110+
echo "- **Branch**: $BRANCH" >> $GITHUB_STEP_SUMMARY
111+
echo "- **Commit SHA**: ${{ github.sha }}" >> $GITHUB_STEP_SUMMARY
112+
echo "" >> $GITHUB_STEP_SUMMARY
113+
echo "### 🔗 Links" >> $GITHUB_STEP_SUMMARY
114+
echo "- 🌐 [View Test Results](https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }})" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)