We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de7fdd3 commit 37a762aCopy full SHA for 37a762a
script/cache-hash.sh
@@ -5,11 +5,11 @@ MAGIC=magic.txt
5
echo auto generated contents >> $MAGIC
6
7
# fetch jni relative elements
8
-grep ndkVersion app/build.gradle >> $MAGIC
+grep ndkVersion app/build.gradle.kts >> $MAGIC
9
10
elments=("buildTypes" "externalNativeBuild" "splits")
11
for element in ${elments[@]}; do
12
- awk "/$element/,/\}/" app/build.gradle >> $MAGIC
+ awk "/$element/,/\}/" app/build.gradle.kts >> $MAGIC
13
done
14
15
JNI_FILES="$MAGIC app/src/main/jni/cmake/* app/src/main/jni/librime_jni/* app/src/main/jni/CMakeLists.txt"
@@ -18,4 +18,4 @@ hash=$(git submodule status)
18
hash=$hash$($DIGEST_ALGORITHM $JNI_FILES)
19
hash=$(echo $hash | $DIGEST_ALGORITHM | cut -c-64)
20
21
-echo "::set-output name=hash::$hash"
+echo "{hash}={hash}" >> $GITHUB_OUTPUT
0 commit comments