File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
.github/actions/configure-gradle Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,11 @@ runs:
1313 run : |
1414 cd ${{ inputs.working-directory }}
1515
16- gradleVersion=$(grep "distributionUrl" ./gradle/wrapper/gradle-wrapper.properties | sed -n 's|.*gradle-\([0-9.]*\)-bin.zip|\1|p')
16+ GRADLE_VERSION=$(grep "distributionUrl" ./gradle/wrapper/gradle-wrapper.properties | sed -n 's|.*gradle-\([0-9.]*\)-bin.zip|\1|p')
17+ CUSTOM_URL="https://d2pjps8lqszrgq.cloudfront.net/gradle-$GRADLE_VERSION-bin.zip"
1718
18- echo Configuring custom Gradle distribution URL with version: $gradleVersion
19- echo Setting distribution URL to: https://d2pjps8lqszrgq.cloudfront.net/gradle-$gradleVersion-bin.zip
19+ echo Configuring custom Gradle distribution URL with version: $GRADLE_VERSION
20+ echo Setting distribution URL to: $CUSTOM_URL
2021
2122 # Detect OS and set appropriate sed option
2223 if sed --version 2>/dev/null | grep -q "GNU sed"; then
2728
2829 # Replace the line containing "distributionUrl" with the new distributionUrl
2930 $SED_CMD "/distributionUrl/c\\
30- distributionUrl=https://d2pjps8lqszrgq.cloudfront.net/gradle-$gradleVersion-bin.zip \\
31+ distributionUrl=$CUSTOM_URL \\
3132 " ./gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https://services.gradle.org/distributions/gradle-8.12-bin.zip
3+ distributionUrl =https://services.gradle.org/distributions/gradle-8.12.1 -bin.zip
44networkTimeout =10000
55zipStoreBase =GRADLE_USER_HOME
66zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments