An action that parses an FVM config file .fvmrc
to get Dart SDK version followed by Flutter version.
You can assign an ID to each usage of this action and retrieve the Dart SDK version from its outputs.
steps:
- uses: actions/checkout@v4
- uses: offich/flutter-fvm-dart-sdk-action@v1
id: flutter-fvm-dart-sdk-version
- name: Echo Dart SDK Version
run: echo ${{ steps.flutter-fvm-dart-sdk-version.outputs.dart-version }}
All the sample options below can be combined with each other.
If you have a custom path for your .fvmrc
file, you can set it with the path
input.
steps:
- uses: actions/checkout@v4
- uses: offich/flutter-fvm-dart-sdk-action@v1
with:
path: 'some-path/.fvmrc'