Skip to content

Commit

Permalink
ci: add delete-reports job to delete if all jobs succeed (#2542)
Browse files Browse the repository at this point in the history
chore: Add conditional step to delete-reports job in TypeScript test workflow
  • Loading branch information
ogabrielluiz authored and carlosrcoelho committed Jul 5, 2024
1 parent 0820d29 commit 67ffc36
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/typescript_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ jobs:
if: failure()
run: echo "failed=true" >> "$GITHUB_OUTPUT"



- name: Upload blob report to GitHub Actions Artifacts
if: always()
uses: actions/upload-artifact@v4
Expand All @@ -127,12 +125,10 @@ jobs:
path: src/frontend/blob-report
retention-days: 1



merge-reports:
needs: setup-and-test
runs-on: ubuntu-latest
if : ${{ needs.setup-and-test.outputs.failed != 'true' }}
if : ${{ needs.setup-and-test.outputs.failed == 'true' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -159,3 +155,11 @@ jobs:
name: html-report--attempt-${{ github.run_attempt }}
path: playwright-report
retention-days: 14
delete-reports:
needs: setup-and-test
runs-on: ubuntu-latest
if : ${{ needs.setup-and-test.outputs.failed != 'true' }}
steps:
- uses: geekyeggo/delete-artifact@v5
with:
name: blob-report-*

0 comments on commit 67ffc36

Please sign in to comment.