Skip to content

Commit 418c2f1

Browse files
BUILD-9108 DEBUG
1 parent c5f6560 commit 418c2f1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

build-gradle/action.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,16 @@ runs:
109109
if: ${{ inputs.disable-caching != 'true' }}
110110
shell: bash
111111
run: |
112+
set -x
113+
echo "SHELL: $SHELL BASH_VERSION: $BASH_VERSION BASH: $BASH"
114+
ls -la *.gradle *.gradle.kts gradle/libs.versions.toml gradle/wrapper/gradle-wrapper.properties 2>/dev/null || true
115+
find --version
116+
find . \( -name '*.gradle' -o -name '*.gradle.kts' \) -type f
117+
find . \( -name '*.gradle' -o -name '*.gradle.kts' \) -type f -exec md5sum {} +
118+
find . \( -name '*.gradle' -o -name '*.gradle.kts' \) -type f -exec md5sum {} \;
119+
type sort
112120
# Generate cache key from all Gradle files
113-
find . \( -name '*.gradle' -o -name '*.gradle.kts' \) -type f -exec md5sum {} \; | sort > gradle-md5-sums.txt
121+
find . \( -name '*.gradle' -o -name '*.gradle.kts' \) -type f -exec md5sum {} \; > gradle-md5-sums.txt
114122
md5sum gradle/libs.versions.toml gradle/wrapper/gradle-wrapper.properties 2>/dev/null >> gradle-md5-sums.txt || true
115123
116124
GRADLE_CACHE_KEY=$(md5sum gradle-md5-sums.txt | awk '{ print $1 }')
@@ -119,6 +127,7 @@ runs:
119127
echo "GRADLE_CACHE_KEY=${GRADLE_CACHE_KEY}" >> "$GITHUB_ENV"
120128
121129
rm -f gradle-md5-sums.txt
130+
set +x
122131
123132
- name: Restore Gradle Cache
124133
if: ${{ inputs.disable-caching != 'true' }}

0 commit comments

Comments
 (0)