feat: fvm support (#383)

* feat: added support for .fvmrc files, so it can fetch the flutter version from there

* feat: changed README description of action to accomodate new changes
This commit is contained in:
Pedro Monteiro
2026-03-18 13:18:09 +00:00
committed by GitHub
parent 0ca7a949e7
commit 6622f58c44
3 changed files with 24 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ inputs:
required: false
default: ""
flutter-version-file:
description: The pubspec.yaml file with exact Flutter version defined
description: The pubspec.yaml or FVM config file with exact Flutter version defined
required: false
default: ""
architecture:
@@ -91,7 +91,7 @@ runs:
# 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' && inputs.flutter-version-file != ''
if: runner.os == 'Windows' && inputs.flutter-version-file != '' && !endsWith(inputs.flutter-version-file, '.fvmrc') && !endsWith(inputs.flutter-version-file, 'fvm_config.json')
run: choco install yq
shell: bash