From c71e923906a578b5e069b14e21ee7f9b3d3b45a5 Mon Sep 17 00:00:00 2001 From: Marten Lohstroh Date: Sat, 23 Sep 2023 16:39:59 -0700 Subject: [PATCH] Update action.yml --- .github/actions/prepare-build-env/action.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/actions/prepare-build-env/action.yml b/.github/actions/prepare-build-env/action.yml index 682be37dbb..933bfce680 100644 --- a/.github/actions/prepare-build-env/action.yml +++ b/.github/actions/prepare-build-env/action.yml @@ -11,3 +11,10 @@ runs: uses: gradle/gradle-build-action@v2.8.0 with: cache-read-only: false + - name: Download Gradle Wrapper and print version + run: | + # Retry 3 times before the steps actually fails + (echo "==== Gradle Wrapper Download Attempt: 1 ====" && ./gradlew --version) || \ + (echo "==== Gradle Wrapper Download Attempt: 2 ====" && ./gradlew --version) || \ + (echo "==== Gradle Wrapper Download Attempt: 3 ====" && ./gradlew --version) || \ + (echo "==== Gradle Wrapper Download Failed ====" && exit 1)