Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I pull Flutter 3.10.7 with subosito/flutter-action?

I am using GitHub actions to build my Flutter app and I use subosito/flutter-action@v2 to pull down Flutter. I am not able to pull the Flutter version 3.10.7 because it is not setup in a channel. I've tried using the channels 'stable' and 'any' and it still does not work. Is there a way to pull version 3.10.7?

Run subosito/flutter-action@v2
Run $GITHUB_ACTION_PATH/setup.sh -p -c '/Users/runner/hostedtoolcache/flutter/:channel:-:version:-:arch:' -k 'flutter-:os:-:channel:-:version:-:arch:-:hash:' -n '3.10.7' -a 'X64' any
Unable to determine Flutter version for channel: any version: 3.10.7 architecture: x64
Error: Process completed with exit code 1.
like image 869
Larry Aasen Avatar asked Oct 11 '25 12:10

Larry Aasen


1 Answers

Quoting the original answer from GitHub: https://github.com/subosito/flutter-action/issues/242#issuecomment-1699782139

To solve this we are using this action to set the flutter version to 3.10.6, and then manually changing to the flutter directory and checking out 3.10.7 from there.

- name: 'Set Flutter 3.10.6'
   uses: subosito/flutter-action@v2
   with:
       flutter-version: 3.10.6
- name: 'Checkout Flutter 3.10.7'
   shell: bash
   run: |
     cd $FLUTTER_ROOT;
     git fetch --tags;
     git checkout 3.10.7;
     flutter --version;
like image 157
rhpekarek Avatar answered Oct 14 '25 11:10

rhpekarek