flutter-sdk-action 1.1.0 - #1
Merged
Merged
Conversation
- action.yml: cache exact Flutter versions via actions/cache@v4 (moving channels stable/beta/master are excluded to avoid pinning a stale SDK), add flutter-version output, use --single-branch clone - ci: bump actions/checkout@v3 -> v7, example version 3.7.7 -> 3.44.4, assert the flutter-version output is populated - docs: fix "Versionen" typo, document inputs/outputs and caching, point usage example at @v1 and Flutter 3.44.4 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UGuW2u1CSh2sZCd3RdYjj
There was a problem hiding this comment.
Pull request overview
Modernizes the flutter-sdk-action composite action for the 1.1.0 release by adding caching for immutable Flutter versions, exposing a resolved Flutter version output, and updating CI/docs to reflect the new behavior.
Changes:
- Added
actions/cache@v4caching for immutable Flutter SDK installs and introduced aflutter-versionaction output. - Updated CI workflow to use
actions/checkout@v7, test a newer example Flutter version, and assert the new output is populated. - Expanded README with inputs/outputs documentation and updated usage examples.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| README.md | Documents caching, inputs/outputs, and updates example versions/usages. |
| action.yml | Adds cache step, output wiring, and emits resolved Flutter version via $GITHUB_OUTPUT. |
| .github/workflows/main.yml | Updates checkout version, Flutter matrix version, and asserts the new action output. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| The action installs the specified Flutter SDK version in the used runner. | ||
| Both Linux and macOS runners are supported. | ||
| By default, the latest stable release of the Flutter SDK is used. | ||
| The installed SDK is cached between runs, so subsequent runs of the same version skip the clone. |
Comment on lines
11
to
+15
| | Flutter SDK Version | Description | Default | Link | | ||
| | --- | --- | --- | --- | | ||
| | stable | Latest stable version of Flutter SDK | true | https://flutter.dev/docs/development/tools/sdk/releases | | ||
| | beta | Latest beta version of Flutter SDK | false | https://flutter.dev/docs/development/tools/sdk/releases | | ||
| | x.y.z | Exact version of Flutter SDK, like 3.7.7 | false | https://flutter.dev/docs/development/tools/sdk/releases | | ||
| | x.y.z | Exact version of Flutter SDK, like 3.44.4 | false | https://flutter.dev/docs/development/tools/sdk/releases | |
|
|
||
| | Name | Description | Default | | ||
| | --- | --- | --- | | ||
| | flutter-sdk-version | The Flutter SDK version to install (`stable`, `beta`, or an exact `x.y.z`) | `stable` | |
Comment on lines
+26
to
+28
| path: | | ||
| ~/.flutter | ||
| ~/.pub-cache |
Comment on lines
+21
to
+23
| # Only cache immutable exact versions. Moving channels (stable/beta/master) | ||
| # would otherwise be pinned to a stale SDK forever. | ||
| if: inputs.flutter-sdk-version != 'stable' && inputs.flutter-sdk-version != 'beta' && inputs.flutter-sdk-version != 'master' && inputs.flutter-sdk-version != 'main' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Modernizes the action and prepares the 1.1.0 release.
actions/cache@v4(moving channelsstable/beta/masterexcluded so they never pin a stale SDK); addflutter-versionoutput;--single-branchclone.actions/checkout@v3→@v7; example version3.7.7→3.44.4; assert the new output is populated.@v1and Flutter3.44.4.Verification
CI runs the matrix on macOS + Ubuntu across
stable,beta,3.44.4.🤖 Generated with Claude Code