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

Support version segment placeholder #204

Closed bartekpacia closed 1 year ago

bartekpacia commented 1 year ago

Actions often provide the possibility of specifying the version with a x placeholder for the tool to pick the newest version.

For example, if flutter-version was specified as follows:

        with:
          channel: "stable"
          flutter-version: "3.7.x"

This action would grab 3.7.3 (which as of posting this issue is the newest patch release for 3.7). Currently, this results in error. This would be very useful for patch versions, as there is often no incentive to stick to a particular patch version. Instead, I would like the patches to be applied automatically.

Inspired by https://github.com/dart-lang/setup-dart/issues/56.

Yang-Xijie commented 1 year ago

image

Is this caused by this action? Or because that the official has removed old versions?

bartekpacia commented 1 year ago

Flutter has no version "3.6.x". The newest one is "3.7.3" (I think).

This issue is about letting you use "3.7.x" instead of "3.7.3", so you'd always automatically use the newest patch version.

subosito commented 1 year ago

It's supported, please see the readme. Closing this.