-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache gradle binaries and dependencies
- Loading branch information
Showing
3 changed files
with
155 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Extract Java and Gradle Versions | ||
description: Versions are reported in JAVA_VERSION and GRADLE_VERSION environment variables | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Extract Versions | ||
id: extract_versions | ||
shell: bash | ||
run: | | ||
# Extract Java version | ||
java_version="${{ matrix.java_version }}" | ||
echo "JAVA_VERSION=${java_version%%+*}" >> $GITHUB_ENV | ||
# Extract Gradle version from gradle-wrapper.properties | ||
gradle_version=$(grep 'distributionUrl' gradle/wrapper/gradle-wrapper.properties | cut -d'=' -f2) | ||
gradle_version=${gradle_version#*gradle-} | ||
gradle_version=${gradle_version%-bin.zip} | ||
echo "GRADLE_VERSION=${gradle_version}" >> $GITHUB_ENV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters