Skip to content

Commit c2d1ed4

Browse files
committed
ci: skip downloading cache when not needed
1 parent 26b1097 commit c2d1ed4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/android.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Checkout code
2323
uses: actions/checkout@v6
2424

25-
- name: Restore cache
25+
- name: Check if cache exists
2626
id: cache
2727
uses: actions/cache/restore@v5
2828
with:
@@ -37,6 +37,7 @@ jobs:
3737
key: ${{ runner.OS }}-saber-android-${{ hashFiles('**/pubspec.lock') }}-${{ hashFiles('**/*.dart') }}
3838
restore-keys: |
3939
${{ runner.OS }}-saber-android-
40+
lookup-only: true
4041

4142
- uses: "./.github/shared_workflows/install_apt_dependencies"
4243
if: ${{ steps.cache.outputs.cache-hit == '' }}

0 commit comments

Comments
 (0)