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:
parent
3061b99ad9
commit
8897c3df00
1 changed files with 8 additions and 6 deletions
14
README.md
14
README.md
|
@ -5,7 +5,7 @@ macOS.
|
||||||
|
|
||||||
The following sections show how to configure this action.
|
The following sections show how to configure this action.
|
||||||
|
|
||||||
## Flutter version
|
## Specifying Flutter version
|
||||||
|
|
||||||
Use specific version and channel:
|
Use specific version and channel:
|
||||||
|
|
||||||
|
@ -21,7 +21,8 @@ steps:
|
||||||
- run: flutter --version
|
- 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
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
|
@ -35,9 +36,8 @@ steps:
|
||||||
- run: flutter --version
|
- run: flutter --version
|
||||||
```
|
```
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> [!IMPORTANT] For `flutter-version-file` to work, you need to have the exact
|
||||||
> For `flutter-version-file` to work, you need to have the exact Flutter version
|
> Flutter version defined in your pubspec.yaml:
|
||||||
> defined in your pubspec.yaml:
|
|
||||||
>
|
>
|
||||||
> **Good**
|
> **Good**
|
||||||
>
|
>
|
||||||
|
@ -55,7 +55,9 @@ steps:
|
||||||
> flutter: ">= 3.19.0 <4.0.0"
|
> 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
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Add table
Reference in a new issue