perf: Only install yq on Windows if used (#362)
This commit is contained in:
committed by
GitHub
parent
e938fdf565
commit
02d6ac3427
@@ -64,8 +64,8 @@ steps:
|
||||
>
|
||||
> Using `flutter-version-file` requires [`yq`](https://github.com/mikefarah/yq),
|
||||
> 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.
|
||||
> 2.18.0, this action installs `yq` automatically if `flutter-version-file`
|
||||
> is specified, so no action is required from you.
|
||||
|
||||
### Use latest release for particular channel
|
||||
|
||||
|
||||
@@ -80,11 +80,12 @@ outputs:
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
# This is a cross-platform composite action that needs yq.
|
||||
# This is a cross-platform composite action that needs yq in order to parse
|
||||
# the pubspec.yaml file.
|
||||
# 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'
|
||||
if: runner.os == 'Windows' && inputs.flutter-version-file != ''
|
||||
run: choco install yq
|
||||
shell: bash
|
||||
|
||||
|
||||
Reference in New Issue
Block a user