From 5cf0383ccce0e1556d8fc92a7d19e54196443de8 Mon Sep 17 00:00:00 2001 From: Oguzhan Soykan Date: Tue, 23 Apr 2024 09:42:55 +0200 Subject: [PATCH] retry action for building --- .github/workflows/build.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 392b99366..5676f1431 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,10 +23,19 @@ jobs: - name: Check out Git repository uses: actions/checkout@v4 - - name: Gradle Build and Test - uses: gradle/gradle-build-action@v3.3.1 + + - uses: Wandalen/wretry.action@master with: - arguments: --build-cache build test koverXmlReport testAggregateXmlReports + action: gradle/gradle-build-action@v3.3.1 + with: | + arguments: --build-cache build test koverXmlReport testAggregateXmlReports + attempt_limit: 3 + attempt_delay: 2000 + +# - name: Gradle Build and Test +# uses: gradle/gradle-build-action@v3.3.1 +# with: +# arguments: --build-cache build test koverXmlReport testAggregateXmlReports - name: Add coverage report to PR id: kover