Skip to content

Commit f670c22

Browse files
committed
feat(actions): add actions/Borales/actions-yarn@v5
1 parent 891635a commit f670c22

File tree

6 files changed

+83
-4
lines changed

6 files changed

+83
-4
lines changed

actions/Borales/actions-yarn/v5/action

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3766bb1335b98fb13c60eaf358fe20811b730a88

docs/supported-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Click on a version to see the binding's code.
4747
* bahmutov
4848
* [npm-install](https://github.com/bahmutov/npm-install) - v1: [`NpmInstallV1`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/bahmutov/NpmInstallV1.kt)
4949
* Borales
50-
* [actions-yarn](https://github.com/Borales/actions-yarn) - v3: [`ActionsYarnV3`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/borales/ActionsYarnV3.kt), v4: [`ActionsYarnV4`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/borales/ActionsYarnV4.kt)
50+
* [actions-yarn](https://github.com/Borales/actions-yarn) - v3: [`ActionsYarnV3`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/borales/ActionsYarnV3.kt), v4: [`ActionsYarnV4`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/borales/ActionsYarnV4.kt), v5: [`ActionsYarnV5`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/borales/ActionsYarnV5.kt)
5151
* burrunan
5252
* [gradle-cache-action](https://github.com/burrunan/gradle-cache-action) - v1 ✅: [`GradleCacheActionV1`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/burrunan/GradleCacheActionV1.kt)
5353
* c2corg
@@ -140,6 +140,6 @@ Click on a version to see the binding's code.
140140
Number of bindings available:
141141

142142
* counting by actions: 84
143-
* counting each version separately: 150
143+
* counting each version separately: 151
144144

145145
Actions [providing typings](https://github.com/typesafegithub/github-actions-typing/) (marked with ✅ on the above list): 18

github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/borales/ActionsYarnV3.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ import kotlin.collections.toTypedArray
3636
* version, or a newer version that the binding doesn't yet know about
3737
*/
3838
@Deprecated(
39-
message = "This action has a newer major version: ActionsYarnV4",
40-
replaceWith = ReplaceWith("ActionsYarnV4"),
39+
message = "This action has a newer major version: ActionsYarnV5",
40+
replaceWith = ReplaceWith("ActionsYarnV5"),
4141
)
4242
public data class ActionsYarnV3 private constructor(
4343
/**

github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/borales/ActionsYarnV4.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
@file:Suppress(
55
"DataClassPrivateConstructor",
66
"UNUSED_PARAMETER",
7+
"DEPRECATION",
78
)
89

910
package io.github.typesafegithub.workflows.actions.borales
1011

1112
import io.github.typesafegithub.workflows.domain.actions.Action
1213
import io.github.typesafegithub.workflows.domain.actions.RegularAction
1314
import java.util.LinkedHashMap
15+
import kotlin.Deprecated
1416
import kotlin.String
1517
import kotlin.Suppress
1618
import kotlin.Unit
@@ -32,6 +34,10 @@ import kotlin.collections.toTypedArray
3234
* @param _customVersion Allows overriding action's version, for example to use a specific minor
3335
* version, or a newer version that the binding doesn't yet know about
3436
*/
37+
@Deprecated(
38+
message = "This action has a newer major version: ActionsYarnV5",
39+
replaceWith = ReplaceWith("ActionsYarnV5"),
40+
)
3541
public data class ActionsYarnV4 private constructor(
3642
/**
3743
* Yarn command
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
// This file was generated using action-binding-generator. Don't change it by hand, otherwise your
2+
// changes will be overwritten with the next binding code regeneration.
3+
// See https://github.com/typesafegithub/github-workflows-kt for more info.
4+
@file:Suppress(
5+
"DataClassPrivateConstructor",
6+
"UNUSED_PARAMETER",
7+
)
8+
9+
package io.github.typesafegithub.workflows.actions.borales
10+
11+
import io.github.typesafegithub.workflows.domain.actions.Action
12+
import io.github.typesafegithub.workflows.domain.actions.RegularAction
13+
import java.util.LinkedHashMap
14+
import kotlin.String
15+
import kotlin.Suppress
16+
import kotlin.Unit
17+
import kotlin.collections.Map
18+
import kotlin.collections.toList
19+
import kotlin.collections.toTypedArray
20+
21+
/**
22+
* Action: GitHub Action for Yarn
23+
*
24+
* Wraps the yarn CLI to enable common yarn commands
25+
*
26+
* [Action on GitHub](https://github.com/Borales/actions-yarn)
27+
*
28+
* @param cmd Yarn command
29+
* @param dir Yarn sub-folder (if needed)
30+
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
31+
* the binding
32+
* @param _customVersion Allows overriding action's version, for example to use a specific minor
33+
* version, or a newer version that the binding doesn't yet know about
34+
*/
35+
public data class ActionsYarnV5 private constructor(
36+
/**
37+
* Yarn command
38+
*/
39+
public val cmd: String,
40+
/**
41+
* Yarn sub-folder (if needed)
42+
*/
43+
public val dir: String? = null,
44+
/**
45+
* Type-unsafe map where you can put any inputs that are not yet supported by the binding
46+
*/
47+
public val _customInputs: Map<String, String> = mapOf(),
48+
/**
49+
* Allows overriding action's version, for example to use a specific minor version, or a newer
50+
* version that the binding doesn't yet know about
51+
*/
52+
public val _customVersion: String? = null,
53+
) : RegularAction<Action.Outputs>("Borales", "actions-yarn", _customVersion ?: "v5") {
54+
public constructor(
55+
vararg pleaseUseNamedArguments: Unit,
56+
cmd: String,
57+
dir: String? = null,
58+
_customInputs: Map<String, String> = mapOf(),
59+
_customVersion: String? = null,
60+
) : this(cmd=cmd, dir=dir, _customInputs=_customInputs, _customVersion=_customVersion)
61+
62+
@Suppress("SpreadOperator")
63+
override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf(
64+
*listOfNotNull(
65+
"cmd" to cmd,
66+
dir?.let { "dir" to it },
67+
*_customInputs.toList().toTypedArray(),
68+
).toTypedArray()
69+
)
70+
71+
override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId)
72+
}

0 commit comments

Comments
 (0)