chore: drop run_attempt from github artifact name (#24594)

This commit is contained in:
Yury Semikhatsky 2023-08-03 15:34:23 -07:00 committed by GitHub
parent d57a3bad39
commit 8b18722181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -23,7 +23,7 @@ runs:
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@v3
with:
name: blob-report-${{ github.run_attempt }}
name: all-blob-reports
path: ${{ inputs.report_dir }}
retention-days: 30
- name: Write triggering pull request number in a file

View File

@ -26,12 +26,12 @@ jobs:
- name: Download blob report artifact
uses: ./.github/actions/download-artifact
with:
name: 'blob-report-${{ github.event.workflow_run.run_attempt }}'
path: 'blob-report'
name: all-blob-reports
path: all-blob-reports
- name: Merge reports
run: |
npx playwright merge-reports --reporter markdown,html ./blob-report
npx playwright merge-reports --reporter markdown,html ./all-blob-reports
- name: Upload HTML report to Azure
run: |

View File

@ -33,7 +33,7 @@ export default defineConfig({
Blob report contains information about all the tests that were run and their results as well as all test attachments such as traces and screenshot diffs. Blob reports can be merged and converted to any other Playwright report. By default, blob report will be generated into `blob-report` directory.
To merge reports from multiple shards, put the blob report files into a single directory, for example `all-blob-reports`. Blob reports are generated with unique names, so they will not clash.
To merge reports from multiple shards, put the blob report files into a single directory, for example `all-blob-reports`. Blob report names contain shard number, so they will not clash.
Afterwards, run `npx playwright merge-reports` command:
@ -77,7 +77,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: all-blob-reports--attempt-${{ github.run_attempt }}
name: all-blob-reports
path: blob-report
retention-days: 1
```
@ -102,7 +102,7 @@ jobs:
- name: Download blob reports from GitHub Actions Artifacts
uses: actions/download-artifact@v3
with:
name: all-blob-reports--attempt-${{ github.run_attempt }}
name: all-blob-reports
path: all-blob-reports
- name: Merge into HTML Report