Skip to content

Commit

Permalink
cleanup partial reports
Browse files Browse the repository at this point in the history
  • Loading branch information
szczecha committed Feb 26, 2025
1 parent daa74f2 commit 7f70553
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/actions/flaky-tests-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,13 @@ runs:
GITHUB_TOKEN: ${{ inputs.github_token }}
if: github.event_name == 'pull_request'

- name: Cleanup partial reports
shell: bash
run: rm -rf ctrf-reports/ctrf-report-*
- name: Cleanup uploaded partial reports
run: |
for artifact_id in $(gh api repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts --jq '.artifacts[] | select(.name | startswith("ctrf-report-")) | .id'); do
gh api --method DELETE repos/${{ github.repository }}/actions/artifacts/$artifact_id
done
env:
GH_TOKEN: ${{ inputs.github_token }}

inputs:
github_token:
Expand Down
8 changes: 8 additions & 0 deletions .github/actions/merge-pw-reports/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,11 @@ runs:
name: html-report--attempt-${{ github.run_attempt }}
path: secure-report.zip
retention-days: 14

- name: Merge blob reports
uses: actions/upload-artifact/merge@v4
with:
path: all-blob-reports
pattern: all-blob-reports-*
retention-days: 7
delete-merged: true

0 comments on commit 7f70553

Please sign in to comment.