Skip to content

Commit 6584dbe

Browse files
authored
Merge pull request #1173 from square/ray/upgrade-cache-action
Upgrades `actions/cache` to v4
2 parents cd68b19 + cd4fe99 commit 6584dbe

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.github/actions/gradle-task/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ runs :
5959
- name : restore cache for ${{inputs.write-cache-key}}
6060
id : restore-write-cache
6161
if : inputs.write-cache-key != 'null'
62-
uses : actions/cache/restore@v3
62+
uses : actions/cache/restore@v4
6363
with :
6464
path : |
6565
~/.gradle/caches/build-cache-1
@@ -77,7 +77,7 @@ runs :
7777
# Skipped if the restore-cache-key wasn't set, or if the write-cache-key restore had an exact match.
7878
- name : restore cache for ${{inputs.restore-cache-key}}
7979
if : inputs.restore-cache-key != 'null' && steps.restore-write-cache.outputs.cache-hit != 'true'
80-
uses : actions/cache/restore@v3
80+
uses : actions/cache/restore@v4
8181
with :
8282
path : |
8383
~/.gradle/caches/build-cache-1
@@ -110,7 +110,7 @@ runs :
110110
# Windows runners are welcome to *read* the cross-OS cache, but the directories get weird if
111111
# they try to write to it.
112112
- name : save the '${{inputs.write-cache-key}}' cache
113-
uses : actions/cache/save@v3
113+
uses : actions/cache/save@v4
114114
id : save-write-cache-key
115115
if : inputs.write-cache-key != 'null' && steps.restore-write-cache.outputs.cache-hit != 'true'
116116
with :

.github/actions/gradle-tasks-with-emulator/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ runs :
5353

5454
# Get the AVD if it's already cached.
5555
- name : AVD cache
56-
uses : actions/cache/restore@v3
56+
uses : actions/cache/restore@v4
5757
id : restore-avd-cache
5858
with :
5959
path : |
@@ -80,7 +80,7 @@ runs :
8080
- name : cache new AVD before tests
8181
if : steps.restore-avd-cache.outputs.cache-hit != 'true'
8282
id : save-avd-cache
83-
uses : actions/cache/save@v3
83+
uses : actions/cache/save@v4
8484
with :
8585
path : |
8686
~/.android/avd/*

.github/workflows/kotlin.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name : Kotlin CI
22

33
on :
4-
push :
5-
branches :
6-
- main
74
# Use pull_request_target so we can lock the runner down to run only on the main branch.
85
# When we want to test changes to this workflow, then we can use:
96
# pull_request :

0 commit comments

Comments
 (0)