Skip to content

Commit 984143c

Browse files
committed
dataconnect.yml: fix missing cache keys when saving to cache
1 parent 2cdac31 commit 984143c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/dataconnect.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ env:
2727
FDC_FIREBASE_TOOLS_VERSION: ${{ inputs.firebaseToolsVersion || '13.29.1' }}
2828
FDC_FIREBASE_TOOLS_DIR: /tmp/firebase-tools
2929
FDC_FIREBASE_COMMAND: /tmp/firebase-tools/node_modules/.bin/firebase
30+
FDC_GRADLE_CACHE_KEY: gradle-cache-jqnvfzw6w7-${{ github.run_id }}
31+
FDC_AVD_CACHE_KEY: avd-cache-zhdsn586je-api${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}-${{ github.run_id }}
3032

3133
concurrency:
3234
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -80,7 +82,7 @@ jobs:
8082
path: |
8183
~/.gradle/caches
8284
~/.gradle/wrapper
83-
key: gradle-cache-jqnvfzw6w7-${{ github.run_id }}
85+
key: ${{ env.FDC_GRADLE_CACHE_KEY }}
8486
restore-keys: |
8587
gradle-cache-jqnvfzw6w7-
8688
@@ -124,7 +126,7 @@ jobs:
124126
path: |
125127
~/.gradle/caches
126128
~/.gradle/wrapper
127-
key: ${{ steps.restore-gradle-cache.outputs.cache-primary-key }}
129+
key: ${{ env.FDC_GRADLE_CACHE_KEY }}
128130

129131
- name: Enable KVM group permissions for Android Emulator
130132
run: |
@@ -141,7 +143,7 @@ jobs:
141143
path: |
142144
~/.android/avd/*
143145
~/.android/adb*
144-
key: avd-cache-zhdsn586je-api${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}-${{ github.run_id }}
146+
key: ${{ env.FDC_AVD_CACHE_KEY }}
145147
restore-keys: |
146148
avd-cache-zhdsn586je-api${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}-
147149
@@ -163,7 +165,7 @@ jobs:
163165
path: |
164166
~/.android/avd/*
165167
~/.android/adb*
166-
key: ${{ steps.restore-avd-cache.outputs.cache-primary-key }}
168+
key: ${{ env.FDC_AVD_CACHE_KEY }}
167169

168170
- name: Data Connect Emulator
169171
run: |

0 commit comments

Comments
 (0)