diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 91d80e63..281c9c18 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -22,8 +22,41 @@ jobs: packagePAT: ${{ secrets.GITHUB_TOKEN }} run: ./gradlew build --no-daemon --scan - - name: Generate Codecov Report - if: github.event_name == 'pull_request' + - name: Generate CodeCov Report Try 1 + if: github.event_name == 'pull_request' + id: uploadReport1 + uses: codecov/codecov-action@v2 + continue-on-error: true + with: + fail_ci_if_error: true + - name: Wait after upload failure + if: steps.uploadReport1.outcome == 'failure' + run: | + sleep 300s + - name: Generate CodeCov Report Try 2 + if: steps.uploadReport1.outcome == 'failure' + id: uploadReport2 + uses: codecov/codecov-action@v2 + continue-on-error: true + with: + fail_ci_if_error: true + - name: Wait after upload failure + if: steps.uploadReport2.outcome == 'failure' + run: | + sleep 300s + - name: Generate CodeCov Report Try 3 + if: steps.uploadReport2.outcome == 'failure' + id: uploadReport3 + uses: codecov/codecov-action@v2 + continue-on-error: true + with: + fail_ci_if_error: true + - name: Wait after upload failure + if: steps.uploadReport3.outcome == 'failure' + run: | + sleep 300s + - name: Generate CodeCov Report Try 4 + if: steps.uploadReport3.outcome == 'failure' uses: codecov/codecov-action@v2 windows-build: