diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml index 690c32e438..bc9970f660 100644 --- a/.github/workflows/test-report.yml +++ b/.github/workflows/test-report.yml @@ -13,6 +13,8 @@ permissions: jobs: report: runs-on: ubuntu-latest + # If the workflow run was skipped or cancelled this action would fail, generating a test report is unnecessary. + if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure' }} steps: - uses: dorny/test-reporter@v1 with: