Skip to content

Commit 8054b63

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

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/playwright.yml

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

0 commit comments

Comments
 (0)