Skip to content

Commit 8535a80

Browse files
authored
Feature/yq on windows (#336)
* install `yq` if runner.os is `windows` * update readme with `yq` on windows info
1 parent 7642db7 commit 8535a80

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,12 @@ steps:
6060
> flutter: ">= 3.19.0 <4.0.0"
6161
> ```
6262

63-
> [!WARNING]
63+
> [!NOTE]
6464
>
6565
> Using `flutter-version-file` requires [`yq`](https://github.com/mikefarah/yq),
66-
> which is not pre-installed in `windows` images. Install it yourself.
66+
> which is not pre-installed in `windows` runners. Fortunately, since version
67+
> 2.18.0, this action installs `yq` automatically, so no action is required from
68+
> you.
6769

6870
### Use latest release for particular channel
6971

action.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ outputs:
7373
runs:
7474
using: composite
7575
steps:
76+
# This is a cross-platform composite action that needs yq.
77+
# It's not preinstalled on Windows runners.
78+
# See https://github.com/actions/runner-images/issues/7443#issuecomment-1514597691
79+
- name: Make yq tool available on Windows runners
80+
if: runner.os == 'Windows'
81+
run: choco install yq
82+
shell: bash
83+
7684
- name: Make setup script executable
7785
run: chmod +x "$GITHUB_ACTION_PATH/setup.sh"
7886
shell: bash

0 commit comments

Comments
 (0)