File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 75
75
- name : Restore Gradle cache
76
76
id : restore-gradle-cache
77
77
uses : actions/cache/restore@d4323d4df104b026a6aa633fdb11d772146be0bf # 4.2.2
78
+ if : github.event_name != 'schedule'
78
79
with :
79
80
path : |
80
81
~/.gradle/caches
@@ -118,6 +119,7 @@ jobs:
118
119
119
120
- name : Save Gradle cache
120
121
uses : actions/cache/save@d4323d4df104b026a6aa633fdb11d772146be0bf # 4.2.2
122
+ if : github.event_name == 'schedule'
121
123
with :
122
124
path : |
123
125
~/.gradle/caches
@@ -133,6 +135,7 @@ jobs:
133
135
134
136
- name : Restore AVD cache
135
137
uses : actions/cache/restore@d4323d4df104b026a6aa633fdb11d772146be0bf # 4.2.2
138
+ if : github.event_name != 'schedule'
136
139
id : restore-avd-cache
137
140
with :
138
141
path : |
@@ -143,7 +146,7 @@ jobs:
143
146
avd-cache-zhdsn586je-api${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}-
144
147
145
148
- 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'
147
150
uses : reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d # v2.33.0
148
151
with :
149
152
api-level : ${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}
@@ -155,6 +158,7 @@ jobs:
155
158
156
159
- name : Save AVD cache
157
160
uses : actions/cache/save@d4323d4df104b026a6aa633fdb11d772146be0bf # 4.2.2
161
+ if : github.event_name == 'schedule'
158
162
with :
159
163
path : |
160
164
~/.android/avd/*
You can’t perform that action at this time.
0 commit comments