Skip to content

Commit

Permalink
Merge pull request #1173 from square/ray/upgrade-cache-action
Browse files Browse the repository at this point in the history
Upgrades `actions/cache` to v4
  • Loading branch information
rjrjr authored Feb 6, 2024
2 parents cd68b19 + cd4fe99 commit 6584dbe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/actions/gradle-task/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ runs :
- name : restore cache for ${{inputs.write-cache-key}}
id : restore-write-cache
if : inputs.write-cache-key != 'null'
uses : actions/cache/restore@v3
uses : actions/cache/restore@v4
with :
path : |
~/.gradle/caches/build-cache-1
Expand All @@ -77,7 +77,7 @@ runs :
# Skipped if the restore-cache-key wasn't set, or if the write-cache-key restore had an exact match.
- name : restore cache for ${{inputs.restore-cache-key}}
if : inputs.restore-cache-key != 'null' && steps.restore-write-cache.outputs.cache-hit != 'true'
uses : actions/cache/restore@v3
uses : actions/cache/restore@v4
with :
path : |
~/.gradle/caches/build-cache-1
Expand Down Expand Up @@ -110,7 +110,7 @@ runs :
# Windows runners are welcome to *read* the cross-OS cache, but the directories get weird if
# they try to write to it.
- name : save the '${{inputs.write-cache-key}}' cache
uses : actions/cache/save@v3
uses : actions/cache/save@v4
id : save-write-cache-key
if : inputs.write-cache-key != 'null' && steps.restore-write-cache.outputs.cache-hit != 'true'
with :
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/gradle-tasks-with-emulator/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ runs :

# Get the AVD if it's already cached.
- name : AVD cache
uses : actions/cache/restore@v3
uses : actions/cache/restore@v4
id : restore-avd-cache
with :
path : |
Expand All @@ -80,7 +80,7 @@ runs :
- name : cache new AVD before tests
if : steps.restore-avd-cache.outputs.cache-hit != 'true'
id : save-avd-cache
uses : actions/cache/save@v3
uses : actions/cache/save@v4
with :
path : |
~/.android/avd/*
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/kotlin.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name : Kotlin CI

on :
push :
branches :
- main
# Use pull_request_target so we can lock the runner down to run only on the main branch.
# When we want to test changes to this workflow, then we can use:
# pull_request :
Expand Down

0 comments on commit 6584dbe

Please sign in to comment.