Skip to content

Commit e40b0a9

Browse files
committed
dataconnect.yml: revert a4c786f
1 parent d9accca commit e40b0a9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/dataconnect.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
- name: Restore Gradle cache
7676
id: restore-gradle-cache
7777
uses: actions/cache/restore@d4323d4df104b026a6aa633fdb11d772146be0bf # 4.2.2
78+
if: github.event_name != 'schedule'
7879
with:
7980
path: |
8081
~/.gradle/caches
@@ -118,6 +119,7 @@ jobs:
118119
119120
- name: Save Gradle cache
120121
uses: actions/cache/save@d4323d4df104b026a6aa633fdb11d772146be0bf # 4.2.2
122+
if: github.event_name == 'schedule'
121123
with:
122124
path: |
123125
~/.gradle/caches
@@ -133,6 +135,7 @@ jobs:
133135
134136
- name: Restore AVD cache
135137
uses: actions/cache/restore@d4323d4df104b026a6aa633fdb11d772146be0bf # 4.2.2
138+
if: github.event_name != 'schedule'
136139
id: restore-avd-cache
137140
with:
138141
path: |
@@ -143,7 +146,7 @@ jobs:
143146
avd-cache-zhdsn586je-api${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}-
144147
145148
- name: Create AVD
146-
if: steps.restore-avd-cache.outputs.cache-hit != 'true'
149+
if: github.event_name == 'schedule' || steps.restore-avd-cache.outputs.cache-hit != 'true'
147150
uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d #v2.33.0
148151
with:
149152
api-level: ${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}
@@ -155,6 +158,7 @@ jobs:
155158

156159
- name: Save AVD cache
157160
uses: actions/cache/save@d4323d4df104b026a6aa633fdb11d772146be0bf # 4.2.2
161+
if: github.event_name == 'schedule'
158162
with:
159163
path: |
160164
~/.android/avd/*

0 commit comments

Comments
 (0)