|
| 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.johnsmith |
| 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.Deprecated |
| 15 | +import kotlin.ExposedCopyVisibility |
| 16 | +import kotlin.String |
| 17 | +import kotlin.Suppress |
| 18 | +import kotlin.Unit |
| 19 | +import kotlin.collections.Map |
| 20 | + |
| 21 | +/** |
| 22 | + * ```text |
| 23 | + * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 24 | + * !!! WARNING !!! |
| 25 | + * !!! !!! |
| 26 | + * !!! This action binding has no typings provided. All inputs will !!! |
| 27 | + * !!! have a default type of String. !!! |
| 28 | + * !!! To be able to use this action in a type-safe way, ask the !!! |
| 29 | + * !!! action's owner to provide the typings using !!! |
| 30 | + * !!! !!! |
| 31 | + * !!! https://github.com/typesafegithub/github-actions-typing !!! |
| 32 | + * !!! !!! |
| 33 | + * !!! or if it's impossible, contribute typings to a community-driven !!! |
| 34 | + * !!! !!! |
| 35 | + * !!! https://github.com/typesafegithub/github-actions-typing-catalog !!! |
| 36 | + * !!! !!! |
| 37 | + * !!! This '_Untyped' binding will be available even once the typings !!! |
| 38 | + * !!! are added. !!! |
| 39 | + * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 40 | + * ``` |
| 41 | + * |
| 42 | + * Action: Action With No Inputs |
| 43 | + * |
| 44 | + * Description |
| 45 | + * |
| 46 | + * [Action on GitHub](https://github.com/john-smith/action-with-no-inputs-with-minor-version) |
| 47 | + * |
| 48 | + * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by |
| 49 | + * the binding |
| 50 | + * @param _customVersion Allows overriding action's version, for example to use a specific minor |
| 51 | + * version, or a newer version that the binding doesn't yet know about |
| 52 | + */ |
| 53 | +@Deprecated( |
| 54 | + "Use the typed class instead", |
| 55 | + ReplaceWith("ActionWithNoInputsWithMinorVersion"), |
| 56 | +) |
| 57 | +@ExposedCopyVisibility |
| 58 | +public data class ActionWithNoInputsWithMinorVersion_Untyped private constructor( |
| 59 | + /** |
| 60 | + * Type-unsafe map where you can put any inputs that are not yet supported by the binding |
| 61 | + */ |
| 62 | + public val _customInputs: Map<String, String> = mapOf(), |
| 63 | + /** |
| 64 | + * Allows overriding action's version, for example to use a specific minor version, or a newer |
| 65 | + * version that the binding doesn't yet know about |
| 66 | + */ |
| 67 | + public val _customVersion: String? = null, |
| 68 | +) : RegularAction<Action.Outputs>("john-smith", "action-with-no-inputs-with-minor-version", |
| 69 | + _customVersion ?: "v3.1") { |
| 70 | + public constructor( |
| 71 | + vararg pleaseUseNamedArguments: Unit, |
| 72 | + _customInputs: Map<String, String> = mapOf(), |
| 73 | + _customVersion: String? = null, |
| 74 | + ) : this(_customInputs = _customInputs, _customVersion = _customVersion) |
| 75 | + |
| 76 | + @Suppress("SpreadOperator") |
| 77 | + override fun toYamlArguments(): LinkedHashMap<String, String> = LinkedHashMap(_customInputs) |
| 78 | + |
| 79 | + override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) |
| 80 | +} |
0 commit comments