From d9b91c30e6d95489f03b59e14bb16b6d247a9f54 Mon Sep 17 00:00:00 2001 From: Jean-Michel Fayard Date: Thu, 14 Apr 2022 20:35:38 +0100 Subject: [PATCH] [#183] fix(library)!: version madhead/semver-utils by major version (#185) This is the only action which so far used only the `latest` version. Since it now exposes a major version like for all other actions this library supports, this change is made to avoid exceptions. --- docs/supported-actions.md | 2 +- .../actions/madhead/{SemverUtils.kt => SemverUtilsV2.kt} | 4 ++-- .../githubactions/wrappergenerator/WrappersToGenerate.kt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/{SemverUtils.kt => SemverUtilsV2.kt} (97%) diff --git a/docs/supported-actions.md b/docs/supported-actions.md index a113b2a96b..b5bc4a6efd 100644 --- a/docs/supported-actions.md +++ b/docs/supported-actions.md @@ -83,7 +83,7 @@ Click on a version to see the wrapper's code. * madhead * [check-gradle-version](https://github.com/madhead/check-gradle-version) - v1: [`CheckGradleVersionV1`](https://github.com/krzema12/github-actions-kotlin-dsl/tree/main/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/CheckGradleVersionV1.kt) * [read-java-properties](https://github.com/madhead/read-java-properties) - latest: [`ReadJavaProperties`](https://github.com/krzema12/github-actions-kotlin-dsl/tree/main/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/ReadJavaProperties.kt) - * [semver-utils](https://github.com/madhead/semver-utils) - latest: [`SemverUtils`](https://github.com/krzema12/github-actions-kotlin-dsl/tree/main/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtils.kt) + * [semver-utils](https://github.com/madhead/semver-utils) - v2: [`SemverUtilsV2`](https://github.com/krzema12/github-actions-kotlin-dsl/tree/main/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV2.kt) * nobrayner * [discord-webhook](https://github.com/nobrayner/discord-webhook) - v1: [`DiscordWebhookV1`](https://github.com/krzema12/github-actions-kotlin-dsl/tree/main/library/src/gen/kotlin/it/krzeminski/githubactions/actions/nobrayner/DiscordWebhookV1.kt) * peterjgrainger diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtils.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV2.kt similarity index 97% rename from library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtils.kt rename to library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV2.kt index 25cd983395..c9af8b71a6 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtils.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV2.kt @@ -17,7 +17,7 @@ import kotlin.collections.toTypedArray * * [Action on GitHub](https://github.com/madhead/semver-utils) */ -public class SemverUtils( +public class SemverUtilsV2( /** * A version to process */ @@ -43,7 +43,7 @@ public class SemverUtils( * version that the wrapper doesn't yet know about */ _customVersion: String? = null, -) : ActionWithOutputs("madhead", "semver-utils", _customVersion ?: "latest") { +) : ActionWithOutputs("madhead", "semver-utils", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments() = linkedMapOf( *listOfNotNull( diff --git a/wrapper-generator/src/main/kotlin/it/krzeminski/githubactions/wrappergenerator/WrappersToGenerate.kt b/wrapper-generator/src/main/kotlin/it/krzeminski/githubactions/wrappergenerator/WrappersToGenerate.kt index a601ebdf78..02570a4539 100644 --- a/wrapper-generator/src/main/kotlin/it/krzeminski/githubactions/wrappergenerator/WrappersToGenerate.kt +++ b/wrapper-generator/src/main/kotlin/it/krzeminski/githubactions/wrappergenerator/WrappersToGenerate.kt @@ -659,7 +659,7 @@ val wrappersToGenerate = listOf( mapOf("all" to BooleanTyping) ), WrapperRequest( - ActionCoords("madhead", "semver-utils", "latest") + ActionCoords("madhead", "semver-utils", "v2") ), WrapperRequest(