Skip to content

Commit 682e7c8

Browse files
authored
feat: configure Gradle action (#60)
1 parent d754946 commit 682e7c8

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Configure Gradle
2+
description: Configures Gradle for use in CI
3+
inputs:
4+
working-directory:
5+
description: The directory in which to run the action
6+
default: .
7+
8+
runs:
9+
using: composite
10+
steps:
11+
- name: Configure custom Gradle distribution URL
12+
shell: bash
13+
run: |
14+
cd ${{ inputs.working-directory }}
15+
gradleVersion=$(grep "distributionUrl" ./gradle/wrapper/gradle-wrapper.properties | sed -n 's|.*gradle-\([0-9.]*\)-bin.zip|\1|p')
16+
echo Configuring custom Gradle distribution URL with version: $gradleVersion
17+
echo gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-$gradleVersion-bin.zip
18+
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-$gradleVersion-bin.zip
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.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)