Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add cache restore keys option #195

Closed
renancaraujo opened this issue Oct 26, 2022 · 1 comment
Closed

feat: add cache restore keys option #195

renancaraujo opened this issue Oct 26, 2022 · 1 comment

Comments

@renancaraujo
Copy link

renancaraujo commented Oct 26, 2022

Cache restore-keys options allow the cache to be restored even when they are invalidated in some cases.

For a scenario where one uses a custom cache-key that includes lock files, a restore-key would be almost always necessary.

     - name: 🐦 Setup Flutter
        uses: subosito/flutter-action@v2
        with:
          flutter-version: 3.3.3
          channel: stable
          cache: true
          cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
          restore-keys: |
            flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
            flutter-:os:-:channel:-:version:-:arch:-:hash
@subosito
Copy link
Owner

Just added it here 88cab40, will publish a release soon. In the meantime please try with the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants