readme: minor updates (#392)

This commit is contained in:
Bartek Pacia
2026-03-18 17:23:45 +01:00
committed by GitHub
parent d97c38e97d
commit 4efee115f1

View File

@@ -302,9 +302,9 @@ jobs:
Integration with [`actions/cache`](https://github.com/actions/cache): Integration with [`actions/cache`](https://github.com/actions/cache):
> [!IMPORTANT] > [!IMPORTANT]
> `subosito/flutter-action` now uses `actions/cache@v5` internally. If you use > `subosito/flutter-action` now uses `actions/cache@v5` internally.
> self-hosted runners, make sure they are updated to Actions Runner > If you use self-hosted runners, make sure they are updated
> `2.327.1` or newer before enabling cache support. > to Actions Runner `2.327.1` or newer before enabling cache support.
```yaml ```yaml
steps: steps:
@@ -326,16 +326,15 @@ steps:
> [!NOTE] > [!NOTE]
> >
> The `cache` and `pub-cache` inputs are independent and control different caches: > **The `cache` and `pub-cache` inputs are independent and control different caches:**
> - `cache: true` - Caches the Flutter SDK installation > - `cache: true/false` - controls whether to cache the Flutter SDK installation
> - `pub-cache: true` - Caches Dart pub dependencies > - `pub-cache: true/false` - controls whether to cache the pub dependencies
> - `pub-cache: false` - Disables pub dependency caching
> >
> **Backward Compatibility:** When `pub-cache` is not specified (empty), it falls back to the `cache` value. > **Backward Compatibility:** When `pub-cache` is not specified (empty), it falls back to the `cache` value.
> This means existing workflows with `cache: true` will automatically cache both Flutter SDK and pub dependencies. > This means existing workflows with `cache: true` automatically cache both Flutter SDK and pub dependencies.
> >
> You can use them in any combination: > You can use them in any combination:
> - Both enabled: `cache: true` (pub-cache will default to true for backward compatibility) > - Both enabled: `cache: true` (`pub-cache` defaults to true for backward compatibility)
> - Both enabled explicitly: `cache: true` and `pub-cache: true` > - Both enabled explicitly: `cache: true` and `pub-cache: true`
> - Only Flutter SDK: `cache: true` and `pub-cache: false` > - Only Flutter SDK: `cache: true` and `pub-cache: false`
> - Only pub dependencies: `cache: false` and `pub-cache: true` for self-hosted runners > - Only pub dependencies: `cache: false` and `pub-cache: true` for self-hosted runners