Skip to content

Commit 857bf88

Browse files
BUILD-9108 DEBUG
1 parent d1dc75d commit 857bf88

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

build-gradle/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,15 @@ runs:
107107
if: ${{ inputs.disable-caching != 'true' }}
108108
shell: bash
109109
run: |
110+
set -x
111+
echo "SHELL: $SHELL BASH_VERSION: $BASH_VERSION BASH: $BASH"
112+
ls -la *.gradle *.gradle.kts gradle/libs.versions.toml gradle/wrapper/gradle-wrapper.properties 2>/dev/null || true
113+
find . \( -name '*.gradle' -o -name '*.gradle.kts' \) -type f
114+
find . \( -name '*.gradle' -o -name '*.gradle.kts' \) -type f -exec md5sum {} +
115+
find . \( -name '*.gradle' -o -name '*.gradle.kts' \) -type f -exec md5sum {} \;
116+
type sort
110117
# Generate cache key from all Gradle files
111-
find . \( -name '*.gradle' -o -name '*.gradle.kts' \) -type f -exec md5sum {} \; | sort > gradle-md5-sums.txt
118+
find . \( -name '*.gradle' -o -name '*.gradle.kts' \) -type f -exec md5sum {} \; > gradle-md5-sums.txt
112119
md5sum gradle/libs.versions.toml gradle/wrapper/gradle-wrapper.properties 2>/dev/null >> gradle-md5-sums.txt || true
113120
114121
GRADLE_CACHE_KEY=$(md5sum gradle-md5-sums.txt | awk '{ print $1 }')
@@ -117,6 +124,7 @@ runs:
117124
echo "GRADLE_CACHE_KEY=${GRADLE_CACHE_KEY}" >> "$GITHUB_ENV"
118125
119126
rm -f gradle-md5-sums.txt
127+
set +x
120128
121129
- name: Restore Gradle Cache
122130
if: ${{ inputs.disable-caching != 'true' }}

0 commit comments

Comments
 (0)