subosito/flutter-action

flutter-version parameter is ignored when cache is used. Is this behavior correct?

Opened this issue · 0 comments

I noticed an interesting behavior when I use the flutter-version parameter passing a specific version.

As suggested in the documentation, if I try to use cache as cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch :", version always returns the latest version of flutter, ignoring the value passed in flutter-version.

Is this behavior correct?

Wouldn't it make more sense if, when I pass the flutter-version: 3.19 parameter, for example, the version parameter receives flutter-version and not the latest version of flutter?