subosito / flutter-action

Flutter environment for use in GitHub Actions. It works on Linux, Windows, and macOS.
MIT License
2.16k stars 193 forks source link

How do I pull 3.10.7? #242

Closed larry-cariq closed 8 months ago

larry-cariq commented 10 months ago

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?

Reference: https://github.com/flutter/flutter/wiki/Upgrading-from-3.10.6-to-3.10.7

Here are my results:

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.
rpekarek-tc commented 10 months ago

Any update on this?

JhonyPerez commented 10 months ago

@larry-cariq

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;
larry-cariq commented 9 months ago

@JhonyPerez Those shell commands worked well. Thanks.