|
| 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