Skip to content

Commit ec890ba

Browse files
committed
fix: pr feedback v1
1 parent 4cf4b1e commit ec890ba

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/actions/configure-gradle/action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
@@ -27,5 +28,5 @@ runs:
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
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=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
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)