Sourced from subosito/flutter-action's releases.
v2.16.0
This release introduces the
dry-run
option, which lets you only get action outputs without downloading Flutter. This can be useful if you want to set up some automations to be notified about new Flutter releases.steps: - name: Clone repository - uses: actions/checkout@v4 - name: Set up Flutter uses: subosito/flutter-action@v2 id: flutter-action with: channel: stable dry-run: true - run: | # Always print the latest stable version. echo CHANNEL=${{ steps.flutter-action.outputs.CHANNEL }} echo VERSION=${{ steps.flutter-action.outputs.VERSION }} shell: bash
Thank you
@kzrnm
for suggesting and implementing it in #270!v2.15.0
Hi! I'm Bartek and I'm a new maintainer of this action. I promise to take good care of it.
This release introduces the
flutter-version-file
option (implemented in #290), which lets you easily centralize Flutter version in a single place – your pubspec.yaml file:You can use it like this:
steps: - name: Clone repository uses: actions/checkout@v4 - name: Set up Flutter uses: subosito/flutter-action@v2 with: channel: stable flutter-version-file: pubspec.yaml # path to pubspec.yaml
Please note that for this to work, you need to specify exact Flutter version in pubspec.yaml:
environment: dart: ">=3.3.0 <4.0.0" flutter: 3.19.0 # This must be exact! No ranges allowed.
Apart from that, some minor README updates and code cleanup were performed.
44ac965
Add dry-run (#270)980391a
more README fixes (#292)3d80492
update README (#291)0ef13f1
Add flutter-version-file
(#290)7564de3
Merge pull request #288
from subosito/chore/action_yaml_refactor2b3ab6c
convert some if-statements to be POSIX-compatible49cd171
split longer linescf12a39
Merge pull request #287
from subosito/minorcea4cf6
workflow.yaml: minor fix043862d
Merge pull request #286
from subosito/format