mirror of
https://github.com/subosito/flutter-action.git
synced 2024-08-16 10:19:50 +02:00
Workaround: https://github.com/actions/runner/issues/665
This commit is contained in:
parent
cc97e1648f
commit
157171cbfc
1 changed files with 7 additions and 3 deletions
10
action.yml
10
action.yml
|
|
@ -49,9 +49,13 @@ runs:
|
|||
- if: ${{ inputs.cache == 'true' }}
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.flutter-action.outputs.CACHE-PATH }}
|
||||
key: ${{ steps.flutter-action.outputs.CACHE-KEY }}-${{ hashFiles('**/pubspec.lock') }}
|
||||
restore-keys: |
|
||||
path: ${CACHE_PATH}
|
||||
key: ${CACHE_KEY}
|
||||
restore-keys: ${CACHE_RESTORE_KEYS}
|
||||
env:
|
||||
CACHE_PATH: ${{ steps.flutter-action.outputs.CACHE-PATH }}
|
||||
CACHE_KEY: ${{ steps.flutter-action.outputs.CACHE-KEY }}-${{ hashFiles('**/pubspec.lock') }}
|
||||
CACHE_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 }}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue