Skip to content

Commit

Permalink
Feature/yq on windows (#336)
Browse files Browse the repository at this point in the history
* install `yq` if runner.os is `windows`

* update readme with `yq` on windows info
  • Loading branch information
bartekpacia authored Dec 3, 2024
1 parent 7642db7 commit 8535a80
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ steps:
> flutter: ">= 3.19.0 <4.0.0"
> ```

> [!WARNING]
> [!NOTE]
>
> 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

Expand Down
8 changes: 8 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ outputs:
runs:
using: composite
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
run: chmod +x "$GITHUB_ACTION_PATH/setup.sh"
shell: bash
Expand Down

0 comments on commit 8535a80

Please sign in to comment.