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),
|
> Using `flutter-version-file` requires [`yq`](https://github.com/mikefarah/yq),
|
||||||
> which is not pre-installed in `windows` runners. Fortunately, since version
|
> 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
|
> 2.18.0, this action installs `yq` automatically if `flutter-version-file`
|
||||||
> you.
|
> is specified, so no action is required from you.
|
||||||
|
|
||||||
### Use latest release for particular channel
|
### Use latest release for particular channel
|
||||||
|
|
||||||
|
|||||||
@@ -80,11 +80,12 @@ outputs:
|
|||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
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.
|
# It's not preinstalled on Windows runners.
|
||||||
# See https://github.com/actions/runner-images/issues/7443#issuecomment-1514597691
|
# See https://github.com/actions/runner-images/issues/7443#issuecomment-1514597691
|
||||||
- name: Make yq tool available on Windows runners
|
- name: Make yq tool available on Windows runners
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows' && inputs.flutter-version-file != ''
|
||||||
run: choco install yq
|
run: choco install yq
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user