Skip to content

Commit e6f447a

Browse files
feat(actions): update subosito/flutter-action@v2 (#1375)
Created automatically. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 2d130c7 commit e6f447a

File tree

2 files changed

+62
-26
lines changed

2 files changed

+62
-26
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1c5eb12d812966ca84680edc38353a0851c8fd56
1+
44ac965b96f18d999802d4b807e3256d5a3f9fa1

github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/subosito/FlutterActionV2.kt

Lines changed: 61 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,44 @@ import kotlin.collections.toList
2020
import kotlin.collections.toTypedArray
2121

2222
/**
23-
* Action: Flutter action
23+
* Action: Set up Flutter
2424
*
2525
* Setup your runner with Flutter environment
2626
*
2727
* [Action on GitHub](https://github.com/subosito/flutter-action)
2828
*
29-
* @param flutterVersion The Flutter version to make available on the path
3029
* @param channel The Flutter build release channel
30+
* @param flutterVersion The Flutter version to make available on the path
31+
* @param flutterVersionFile The pubspec.yaml file with exact Flutter version defined
32+
* @param architecture The architecture of Flutter SDK executable (x64 or arm64)
3133
* @param cache Cache the Flutter SDK
3234
* @param cacheKey Identifier for the Flutter SDK cache
33-
* @param pubCacheKey Identifier for the Dart .pub-cache cache
3435
* @param cachePath Flutter SDK cache path
36+
* @param pubCacheKey Identifier for the Dart .pub-cache cache
3537
* @param pubCachePath Flutter pub cache path
36-
* @param architecture The architecture of Flutter SDK executable (x64 or arm64)
38+
* @param dryRun If true, get outputs but do not install Flutter
3739
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
3840
* the binding
3941
* @param _customVersion Allows overriding action's version, for example to use a specific minor
4042
* version, or a newer version that the binding doesn't yet know about
4143
*/
4244
public data class FlutterActionV2 private constructor(
45+
/**
46+
* The Flutter build release channel
47+
*/
48+
public val channel: FlutterActionV2.Channel? = null,
4349
/**
4450
* The Flutter version to make available on the path
4551
*/
4652
public val flutterVersion: String? = null,
4753
/**
48-
* The Flutter build release channel
54+
* The pubspec.yaml file with exact Flutter version defined
4955
*/
50-
public val channel: FlutterActionV2.Channel? = null,
56+
public val flutterVersionFile: String? = null,
57+
/**
58+
* The architecture of Flutter SDK executable (x64 or arm64)
59+
*/
60+
public val architecture: FlutterActionV2.Architecture? = null,
5161
/**
5262
* Cache the Flutter SDK
5363
*/
@@ -56,22 +66,22 @@ public data class FlutterActionV2 private constructor(
5666
* Identifier for the Flutter SDK cache
5767
*/
5868
public val cacheKey: String? = null,
59-
/**
60-
* Identifier for the Dart .pub-cache cache
61-
*/
62-
public val pubCacheKey: String? = null,
6369
/**
6470
* Flutter SDK cache path
6571
*/
6672
public val cachePath: String? = null,
73+
/**
74+
* Identifier for the Dart .pub-cache cache
75+
*/
76+
public val pubCacheKey: String? = null,
6777
/**
6878
* Flutter pub cache path
6979
*/
7080
public val pubCachePath: String? = null,
7181
/**
72-
* The architecture of Flutter SDK executable (x64 or arm64)
82+
* If true, get outputs but do not install Flutter
7383
*/
74-
public val architecture: FlutterActionV2.Architecture? = null,
84+
public val dryRun: Boolean? = null,
7585
/**
7686
* Type-unsafe map where you can put any inputs that are not yet supported by the binding
7787
*/
@@ -84,31 +94,36 @@ public data class FlutterActionV2 private constructor(
8494
) : RegularAction<FlutterActionV2.Outputs>("subosito", "flutter-action", _customVersion ?: "v2") {
8595
public constructor(
8696
vararg pleaseUseNamedArguments: Unit,
87-
flutterVersion: String? = null,
8897
channel: FlutterActionV2.Channel? = null,
98+
flutterVersion: String? = null,
99+
flutterVersionFile: String? = null,
100+
architecture: FlutterActionV2.Architecture? = null,
89101
cache: Boolean? = null,
90102
cacheKey: String? = null,
91-
pubCacheKey: String? = null,
92103
cachePath: String? = null,
104+
pubCacheKey: String? = null,
93105
pubCachePath: String? = null,
94-
architecture: FlutterActionV2.Architecture? = null,
106+
dryRun: Boolean? = null,
95107
_customInputs: Map<String, String> = mapOf(),
96108
_customVersion: String? = null,
97-
) : this(flutterVersion=flutterVersion, channel=channel, cache=cache, cacheKey=cacheKey,
98-
pubCacheKey=pubCacheKey, cachePath=cachePath, pubCachePath=pubCachePath,
99-
architecture=architecture, _customInputs=_customInputs, _customVersion=_customVersion)
109+
) : this(channel=channel, flutterVersion=flutterVersion, flutterVersionFile=flutterVersionFile,
110+
architecture=architecture, cache=cache, cacheKey=cacheKey, cachePath=cachePath,
111+
pubCacheKey=pubCacheKey, pubCachePath=pubCachePath, dryRun=dryRun,
112+
_customInputs=_customInputs, _customVersion=_customVersion)
100113

101114
@Suppress("SpreadOperator")
102115
override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf(
103116
*listOfNotNull(
104-
flutterVersion?.let { "flutter-version" to it },
105117
channel?.let { "channel" to it.stringValue },
118+
flutterVersion?.let { "flutter-version" to it },
119+
flutterVersionFile?.let { "flutter-version-file" to it },
120+
architecture?.let { "architecture" to it.stringValue },
106121
cache?.let { "cache" to it.toString() },
107122
cacheKey?.let { "cache-key" to it },
108-
pubCacheKey?.let { "pub-cache-key" to it },
109123
cachePath?.let { "cache-path" to it },
124+
pubCacheKey?.let { "pub-cache-key" to it },
110125
pubCachePath?.let { "pub-cache-path" to it },
111-
architecture?.let { "architecture" to it.stringValue },
126+
dryRun?.let { "dry-run" to it.toString() },
112127
*_customInputs.toList().toTypedArray(),
113128
).toTypedArray()
114129
)
@@ -148,18 +163,39 @@ public data class FlutterActionV2 private constructor(
148163
public class Outputs(
149164
stepId: String,
150165
) : Action.Outputs(stepId) {
151-
public val cachePath: String = "steps.$stepId.outputs.CACHE-PATH"
152-
153-
public val cacheKey: String = "steps.$stepId.outputs.CACHE-KEY"
154-
166+
/**
167+
* The selected Flutter release channel
168+
*/
155169
public val channel: String = "steps.$stepId.outputs.CHANNEL"
156170

171+
/**
172+
* The selected Flutter version
173+
*/
157174
public val version: String = "steps.$stepId.outputs.VERSION"
158175

176+
/**
177+
* The selected Flutter CPU architecture
178+
*/
159179
public val architecture: String = "steps.$stepId.outputs.ARCHITECTURE"
160180

181+
/**
182+
* Key used to cache the Flutter SDK
183+
*/
184+
public val cacheKey: String = "steps.$stepId.outputs.CACHE-KEY"
185+
186+
/**
187+
* Path to Flutter SDK
188+
*/
189+
public val cachePath: String = "steps.$stepId.outputs.CACHE-PATH"
190+
191+
/**
192+
* Key used to cache the pub dependencies
193+
*/
161194
public val pubCacheKey: String = "steps.$stepId.outputs.PUB-CACHE-KEY"
162195

196+
/**
197+
* Path to pub cache
198+
*/
163199
public val pubCachePath: String = "steps.$stepId.outputs.PUB-CACHE-PATH"
164200
}
165201
}

0 commit comments

Comments
 (0)