Skip to content

flutter-sdk-action 1.1.0 - #1

Merged
messeb merged 1 commit into
mainfrom
feature/1.1.0
Jul 4, 2026
Merged

flutter-sdk-action 1.1.0#1
messeb merged 1 commit into
mainfrom
feature/1.1.0

Conversation

@messeb

@messeb messeb commented Jul 4, 2026

Copy link
Copy Markdown
Member

Summary

Modernizes the action and prepares the 1.1.0 release.

  • action.yml: cache immutable exact Flutter versions via actions/cache@v4 (moving channels stable/beta/master excluded so they never pin a stale SDK); add flutter-version output; --single-branch clone.
  • CI: actions/checkout@v3@v7; example version 3.7.73.44.4; assert the new output is populated.
  • Docs: fix "Versionen" typo, document inputs/outputs + caching, point usage at @v1 and Flutter 3.44.4.

Verification

CI runs the matrix on macOS + Ubuntu across stable, beta, 3.44.4.

🤖 Generated with Claude Code

- 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
Copilot AI review requested due to automatic review settings July 4, 2026 04:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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@v4 caching for immutable Flutter SDK installs and introduced a flutter-version action 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.

Comment thread README.md
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 thread README.md
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 |
Comment thread README.md

| Name | Description | Default |
| --- | --- | --- |
| flutter-sdk-version | The Flutter SDK version to install (`stable`, `beta`, or an exact `x.y.z`) | `stable` |
Comment thread action.yml
Comment on lines +26 to +28
path: |
~/.flutter
~/.pub-cache
Comment thread action.yml
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'
@messeb
messeb merged commit ccced6c into main Jul 4, 2026
7 checks passed
@messeb
messeb deleted the feature/1.1.0 branch July 4, 2026 04:25
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 this pull request may close these issues.

2 participants