Feature/yq on windows (#336)
* install `yq` if runner.os is `windows` * update readme with `yq` on windows info
This commit is contained in:
@@ -60,10 +60,12 @@ steps:
|
|||||||
> flutter: ">= 3.19.0 <4.0.0"
|
> flutter: ">= 3.19.0 <4.0.0"
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
> [!WARNING]
|
> [!NOTE]
|
||||||
>
|
>
|
||||||
> Using `flutter-version-file` requires [`yq`](https://github.com/mikefarah/yq),
|
> Using `flutter-version-file` requires [`yq`](https://github.com/mikefarah/yq),
|
||||||
> which is not pre-installed in `windows` images. Install it yourself.
|
> which is not pre-installed in `windows` runners. Fortunately, since version
|
||||||
|
> 2.18.0, this action installs `yq` automatically, so no action is required from
|
||||||
|
> you.
|
||||||
|
|
||||||
### Use latest release for particular channel
|
### Use latest release for particular channel
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,14 @@ outputs:
|
|||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
|
# This is a cross-platform composite action that needs yq.
|
||||||
|
# It's not preinstalled on Windows runners.
|
||||||
|
# See https://github.com/actions/runner-images/issues/7443#issuecomment-1514597691
|
||||||
|
- name: Make yq tool available on Windows runners
|
||||||
|
if: runner.os == 'Windows'
|
||||||
|
run: choco install yq
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Make setup script executable
|
- name: Make setup script executable
|
||||||
run: chmod +x "$GITHUB_ACTION_PATH/setup.sh"
|
run: chmod +x "$GITHUB_ACTION_PATH/setup.sh"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user