Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter version: latest support #5

Closed
hurelhuyag opened this issue Oct 17, 2023 · 3 comments · Fixed by #6
Closed

Flutter version: latest support #5

hurelhuyag opened this issue Oct 17, 2023 · 3 comments · Fixed by #6

Comments

@hurelhuyag
Copy link
Contributor

Currently, I am using config like this. Occasionally, This requires me to update the version property.

      - name: Setup Flutter SDK
        uses: flutter-actions/setup-flutter@v2
        with:
          channel: stable
          version: 3.13.1

What if we have version:latest support? Is this possible?

      - name: Setup Flutter SDK
        uses: flutter-actions/setup-flutter@v2
        with:
          channel: stable
          version: latest
@socheatsok78
Copy link
Member

Hi, @hurelhuyag this current not possible.

The issue was that there is not official mechanism to identify which version is latest.

  • The Flutter SDK Archive only provides a fixed versioning scheme.
  • The GitHub releases latest something stable and some other time is beta channel.

So I'm not sure how/what is the best way to work around this yet.

It is possible but it would take sometime.

@hurelhuyag
Copy link
Contributor Author

Can we use https://storage.googleapis.com/flutter_infra_release/releases/releases_linux.json this endpoint to extract the latest version?

Something like this:

curl -s https://storage.googleapis.com/flutter_infra_release/releases/releases_linux.json | jq -r '.releases | map(select(.channel == "stable")) | .[0].version'

@hurelhuyag
Copy link
Contributor Author

I tested only the part I added.

#6

@socheatsok78 socheatsok78 linked a pull request Oct 20, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants