Skip to content

Commit cfb7a54

Browse files
committed
feat(actions): add peaceiris/actions-hugo@v3
1 parent dc92328 commit cfb7a54

File tree

5 files changed

+84
-2
lines changed

5 files changed

+84
-2
lines changed

actions/peaceiris/actions-hugo/v3/action

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

docs/supported-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Click on a version to see the binding's code.
111111
* [discord-webhook](https://github.com/nobrayner/discord-webhook) - v1: [`DiscordWebhookV1`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/nobrayner/DiscordWebhookV1.kt)
112112
* peaceiris
113113
* [actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) - v3: [`ActionsGhPagesV3`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/peaceiris/ActionsGhPagesV3.kt), v4: [`ActionsGhPagesV4`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/peaceiris/ActionsGhPagesV4.kt)
114-
* [actions-hugo](https://github.com/peaceiris/actions-hugo) - v2: [`ActionsHugoV2`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/peaceiris/ActionsHugoV2.kt)
114+
* [actions-hugo](https://github.com/peaceiris/actions-hugo) - v2: [`ActionsHugoV2`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/peaceiris/ActionsHugoV2.kt), v3: [`ActionsHugoV3`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/peaceiris/ActionsHugoV3.kt)
115115
* peter-evans
116116
* [create-issue-from-file](https://github.com/peter-evans/create-issue-from-file) - v4: [`CreateIssueFromFileV4`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/peterevans/CreateIssueFromFileV4.kt), v5: [`CreateIssueFromFileV5`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/peterevans/CreateIssueFromFileV5.kt)
117117
* [create-pull-request](https://github.com/peter-evans/create-pull-request) - v4: [`CreatePullRequestV4`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/peterevans/CreatePullRequestV4.kt), v5: [`CreatePullRequestV5`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/peterevans/CreatePullRequestV5.kt), v6: [`CreatePullRequestV6`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/peterevans/CreatePullRequestV6.kt)
@@ -141,6 +141,6 @@ Click on a version to see the binding's code.
141141
Number of bindings available:
142142

143143
* counting by actions: 85
144-
* counting each version separately: 163
144+
* counting each version separately: 164
145145

146146
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/peaceiris/ActionsHugoV2.kt

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

910
package io.github.typesafegithub.workflows.actions.peaceiris
@@ -12,6 +13,7 @@ import io.github.typesafegithub.workflows.domain.actions.Action
1213
import io.github.typesafegithub.workflows.domain.actions.RegularAction
1314
import java.util.LinkedHashMap
1415
import kotlin.Boolean
16+
import kotlin.Deprecated
1517
import kotlin.String
1618
import kotlin.Suppress
1719
import kotlin.Unit
@@ -34,6 +36,10 @@ import kotlin.collections.toTypedArray
3436
* @param _customVersion Allows overriding action's version, for example to use a specific minor
3537
* version, or a newer version that the binding doesn't yet know about
3638
*/
39+
@Deprecated(
40+
message = "This action has a newer major version: ActionsHugoV3",
41+
replaceWith = ReplaceWith("ActionsHugoV3"),
42+
)
3743
public data class ActionsHugoV2 private constructor(
3844
/**
3945
* The Hugo version to download (if necessary) and use. Example: 0.58.2
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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.peaceiris
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.Boolean
15+
import kotlin.String
16+
import kotlin.Suppress
17+
import kotlin.Unit
18+
import kotlin.collections.Map
19+
import kotlin.collections.toList
20+
import kotlin.collections.toTypedArray
21+
22+
/**
23+
* Action: Hugo setup
24+
*
25+
* GitHub Actions for Hugo ⚡️ Setup Hugo quickly and build your site fast. Hugo extended and Hugo
26+
* Modules are supported.
27+
*
28+
* [Action on GitHub](https://github.com/peaceiris/actions-hugo)
29+
*
30+
* @param hugoVersion The Hugo version to download (if necessary) and use. Example: 0.58.2
31+
* @param extended Download (if necessary) and use Hugo extended version. Example: true
32+
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
33+
* the binding
34+
* @param _customVersion Allows overriding action's version, for example to use a specific minor
35+
* version, or a newer version that the binding doesn't yet know about
36+
*/
37+
public data class ActionsHugoV3 private constructor(
38+
/**
39+
* The Hugo version to download (if necessary) and use. Example: 0.58.2
40+
*/
41+
public val hugoVersion: String? = null,
42+
/**
43+
* Download (if necessary) and use Hugo extended version. Example: true
44+
*/
45+
public val extended: Boolean? = null,
46+
/**
47+
* Type-unsafe map where you can put any inputs that are not yet supported by the binding
48+
*/
49+
public val _customInputs: Map<String, String> = mapOf(),
50+
/**
51+
* Allows overriding action's version, for example to use a specific minor version, or a newer
52+
* version that the binding doesn't yet know about
53+
*/
54+
public val _customVersion: String? = null,
55+
) : RegularAction<Action.Outputs>("peaceiris", "actions-hugo", _customVersion ?: "v3") {
56+
public constructor(
57+
vararg pleaseUseNamedArguments: Unit,
58+
hugoVersion: String? = null,
59+
extended: Boolean? = null,
60+
_customInputs: Map<String, String> = mapOf(),
61+
_customVersion: String? = null,
62+
) : this(hugoVersion=hugoVersion, extended=extended, _customInputs=_customInputs,
63+
_customVersion=_customVersion)
64+
65+
@Suppress("SpreadOperator")
66+
override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf(
67+
*listOfNotNull(
68+
hugoVersion?.let { "hugo-version" to it },
69+
extended?.let { "extended" to it.toString() },
70+
*_customInputs.toList().toTypedArray(),
71+
).toTypedArray()
72+
)
73+
74+
override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId)
75+
}

0 commit comments

Comments
 (0)