Skip to content

Commit

Permalink
[#183] fix(library)!: version madhead/semver-utils by major version (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
jmfayard authored Apr 14, 2022
1 parent a3a24a3 commit d9b91c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/supported-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -43,7 +43,7 @@ public class SemverUtils(
* version that the wrapper doesn't yet know about
*/
_customVersion: String? = null,
) : ActionWithOutputs<SemverUtils.Outputs>("madhead", "semver-utils", _customVersion ?: "latest") {
) : ActionWithOutputs<SemverUtilsV2.Outputs>("madhead", "semver-utils", _customVersion ?: "v2") {
@Suppress("SpreadOperator")
public override fun toYamlArguments() = linkedMapOf(
*listOfNotNull(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ val wrappersToGenerate = listOf(
mapOf("all" to BooleanTyping)
),
WrapperRequest(
ActionCoords("madhead", "semver-utils", "latest")
ActionCoords("madhead", "semver-utils", "v2")
),

WrapperRequest(
Expand Down

0 comments on commit d9b91c3

Please sign in to comment.