Skip to content

Commit 031cfdb

Browse files
msluszniakclaude
andcommitted
fix: use literal paths in Android CI expo prebuild cache key
Nested \${{ env.VAR }} inside hashFiles() string literals doesn't expand in GitHub Actions, resulting in an empty hash and a stale cache hit on every run. Use literal paths instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0bbd399 commit 031cfdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-android-llm-example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
uses: actions/cache@v4
5757
with:
5858
path: ${{ env.WORKING_DIRECTORY }}/android
59-
key: ${{ runner.os }}-expo-android-${{ hashFiles('${{ env.WORKING_DIRECTORY }}/app.json', '${{ env.WORKING_DIRECTORY }}/package.json') }}
59+
key: ${{ runner.os }}-expo-android-${{ hashFiles('apps/llm/app.json', 'apps/llm/package.json') }}
6060
restore-keys: |
6161
${{ runner.os }}-expo-android-
6262
- name: Generate native Android project

0 commit comments

Comments
 (0)