perf: Only install yq on Windows if used (#362)

This commit is contained in:
Christer Eliasi-Swahn
2025-06-09 09:54:01 +02:00
committed by GitHub
parent e938fdf565
commit 02d6ac3427
2 changed files with 5 additions and 4 deletions

View File

@@ -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