Skip to content

Commit 4d6ef18

Browse files
committed
add id for upload artifact, update comment body
1 parent 4b895ae commit 4d6ef18

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/playwright.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ jobs:
3636
run: npm run test
3737
- uses: actions/upload-artifact@v4
3838
if: ${{ !cancelled() }}
39+
id: artifact-upload-step
3940
with:
4041
name: playwright-report-${{ env.VERSION_SUFFIX }}.zip
4142
path: playwright-report/
43+
overwrite: true
4244
retention-days: 30
4345
- name: Find Comment
4446
uses: peter-evans/find-comment@v3
@@ -53,9 +55,8 @@ jobs:
5355
comment-id: ${{ steps.fc.outputs.comment-id }}
5456
issue-number: ${{ github.event.pull_request.number }}
5557
body: |
56-
` ## Playwright Report Artifact
58+
## Playwright Report Artifact
5759
| file | commit |
5860
| ---- | ------ |
59-
| [playwright-report-${{ env.VERSION_SUFFIX }}.zip](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts) | ${{ github.sha }} |
60-
`
61+
| [playwright-report-${{ env.VERSION_SUFFIX }}.zip](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.artifact-upload-step.outputs.artifact-id }}) | ${{ github.sha }} |
6162
edit-mode: replace

0 commit comments

Comments
 (0)