mirror of
https://github.com/subosito/flutter-action.git
synced 2024-08-16 10:19:50 +02:00
add restore-keys cache support
This commit is contained in:
parent
55a58f6493
commit
88cab4064b
1 changed files with 4 additions and 1 deletions
|
@ -50,6 +50,9 @@ runs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.flutter-action.outputs.CACHE-PATH }}
|
path: ${{ steps.flutter-action.outputs.CACHE-PATH }}
|
||||||
key: ${{ steps.flutter-action.outputs.CACHE-KEY }}
|
key: ${{ steps.flutter-action.outputs.CACHE-KEY }}-${{ hashFiles('**/pubspec.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ steps.flutter-action.outputs.CACHE-KEY }}-${{ hashFiles('**/pubspec.lock') }}
|
||||||
|
${{ steps.flutter-action.outputs.CACHE-KEY }}
|
||||||
- run: $GITHUB_ACTION_PATH/setup.sh -c '${{ steps.flutter-action.outputs.CACHE-PATH }}' -n '${{ steps.flutter-action.outputs.VERSION }}' -a '${{ steps.flutter-action.outputs.ARCHITECTURE }}' ${{ steps.flutter-action.outputs.CHANNEL }}
|
- run: $GITHUB_ACTION_PATH/setup.sh -c '${{ steps.flutter-action.outputs.CACHE-PATH }}' -n '${{ steps.flutter-action.outputs.VERSION }}' -a '${{ steps.flutter-action.outputs.ARCHITECTURE }}' ${{ steps.flutter-action.outputs.CHANNEL }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue