Reverting parts of https://github.com/microsoft/playwright/pull/29080 related to use of overwrite: true as it is racy and [fails](https://github.com/microsoft/playwright/actions/runs/7641699534/job/20819588957?pr=28932#step:10:63) time to time with parallel jobs:  Reference https://github.com/actions/upload-artifact/issues/506
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
name: 'Upload blob report'
|
|
description: 'Upload blob report to GitHub artifacts (for pull requests)'
|
|
inputs:
|
|
report_dir:
|
|
description: 'Directory containing blob report'
|
|
required: true
|
|
type: string
|
|
default: 'test-results/blob-report'
|
|
job_name:
|
|
description: 'Unique job name'
|
|
required: true
|
|
type: string
|
|
default: ''
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Upload blob report to GitHub
|
|
if: always() && github.event_name == 'pull_request'
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: blob-report-${{ inputs.job_name }}
|
|
path: ${{ inputs.report_dir }}/**
|
|
retention-days: 7
|
|
- name: Write triggering pull request number in a file
|
|
if: always() && github.event_name == 'pull_request'
|
|
shell: bash
|
|
run: echo '${{ github.event.number }}' > pull_request_number.txt;
|
|
- name: Upload artifact with the pull request number
|
|
if: always() && github.event_name == 'pull_request'
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: pull-request-${{ inputs.job_name }}
|
|
path: pull_request_number.txt |