File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 5555 cache-encryption-key : ${{ secrets.GRADLE_ENCRYPTION_KEY }}
5656 cache-read-only : ${{ github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/heads/1.') }}
5757
58+ - name : Resolve dependencies
59+ run : |
60+ max_attempts=3
61+ attempt=1
62+ until ./gradlew dependencies --stacktrace; do
63+ if [ $attempt -ge $max_attempts ]; then
64+ echo "Failed to resolve dependencies after $max_attempts attempts"
65+ exit 1
66+ fi
67+ echo "Attempt $attempt failed, retrying in 30 seconds..."
68+ attempt=$((attempt + 1))
69+ sleep 30
70+ done
71+
5872 - name : Build
5973 run : ./gradlew build --stacktrace --warning-mode=fail
6074
Original file line number Diff line number Diff line change 6262 cache-encryption-key : ${{ secrets.GRADLE_ENCRYPTION_KEY }}
6363 cache-read-only : ${{ github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/heads/1.') }}
6464
65+ - name : Resolve dependencies
66+ run : |
67+ max_attempts=3
68+ attempt=1
69+ until ./gradlew dependencies --stacktrace; do
70+ if [ $attempt -ge $max_attempts ]; then
71+ echo "Failed to resolve dependencies after $max_attempts attempts"
72+ exit 1
73+ fi
74+ echo "Attempt $attempt failed, retrying in 30 seconds..."
75+ attempt=$((attempt + 1))
76+ sleep 30
77+ done
78+
6579 - name : Build
6680 run : ./gradlew build --stacktrace --warning-mode=fail
6781
You can’t perform that action at this time.
0 commit comments