1
0
Fork 0
mirror of https://github.com/subosito/flutter-action.git synced 2024-08-16 10:19:50 +02:00

update README with yq x windows warning

This commit is contained in:
Bartek Pacia 2024-04-01 03:58:56 +02:00
parent 3061b99ad9
commit 8897c3df00
No known key found for this signature in database

View file

@ -5,7 +5,7 @@ macOS.
The following sections show how to configure this action.
## Flutter version
## Specifying Flutter version
Use specific version and channel:
@ -21,7 +21,8 @@ steps:
- run: flutter --version
```
Use version from pubspec.yaml:
Use version from pubspec.yaml (inspired by
[`actions/setup-go`](https://github.com/actions/setup-go)):
```yaml
steps:
@ -35,9 +36,8 @@ steps:
- run: flutter --version
```
> [!IMPORTANT]
> For `flutter-version-file` to work, you need to have the exact Flutter version
> defined in your pubspec.yaml:
> [!IMPORTANT] For `flutter-version-file` to work, you need to have the exact
> Flutter version defined in your pubspec.yaml:
>
> **Good**
>
@ -55,7 +55,9 @@ steps:
> flutter: ">= 3.19.0 <4.0.0"
> ```
Use latest release for particular channel:
> [!WARNING]
> Using `flutter-version-file` requires [`yq`][https://github.com/mikefarah/yq],
> which is not pre-installed in `windows` images. Install it yourself.
```yaml
steps: