From 85a23e2e9d5ba7e48b4fd86a9e42891cdcf2cb48 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 3 Feb 2023 12:28:43 +0100 Subject: [PATCH 01/25] chore(deps): update dependency it.krzeminski:github-actions-kotlin-dsl to v0.36.0 (#670) --- .github/workflows/_shared.main.kts | 2 +- .github/workflows/actions-versions.main.kts | 2 +- .github/workflows/actions-versions.yaml | 10 ++-------- .github/workflows/build.main.kts | 2 +- .github/workflows/build.yaml | 10 ++-------- .../workflows/check-if-wrappers-up-to-date.main.kts | 2 +- .github/workflows/check-if-wrappers-up-to-date.yaml | 10 ++-------- .github/workflows/gradle-wrapper-validation.main.kts | 2 +- .github/workflows/gradle-wrapper-validation.yaml | 10 ++-------- .github/workflows/release.main.kts | 2 +- .github/workflows/release.yaml | 10 ++-------- 11 files changed, 16 insertions(+), 46 deletions(-) diff --git a/.github/workflows/_shared.main.kts b/.github/workflows/_shared.main.kts index 6b007fd9fb..131219f56c 100755 --- a/.github/workflows/_shared.main.kts +++ b/.github/workflows/_shared.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.35.0") +@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.36.0") import it.krzeminski.githubactions.actions.actions.SetupJavaV3 import it.krzeminski.githubactions.actions.actions.SetupPythonV4 diff --git a/.github/workflows/actions-versions.main.kts b/.github/workflows/actions-versions.main.kts index ff2a8e07e6..f9f0ebe8f7 100755 --- a/.github/workflows/actions-versions.main.kts +++ b/.github/workflows/actions-versions.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.35.0") +@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.36.0") @file:Import("_shared.main.kts") import it.krzeminski.githubactions.actions.actions.CheckoutV3 diff --git a/.github/workflows/actions-versions.yaml b/.github/workflows/actions-versions.yaml index 51fb0272ae..0cc79cd55c 100644 --- a/.github/workflows/actions-versions.yaml +++ b/.github/workflows/actions-versions.yaml @@ -9,6 +9,7 @@ on: workflow_dispatch: {} jobs: check_yaml_consistency: + name: Check YAML consistency runs-on: ubuntu-latest if: ${{ github.repository_owner == 'krzema12' || github.event_name != 'schedule' }} steps: @@ -16,16 +17,9 @@ jobs: name: Check out uses: actions/checkout@v3 - id: step-1 - name: Set up Java in proper version - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: zulu - cache: gradle - - id: step-2 name: Execute script run: rm '.github/workflows/actions-versions.yaml' && '.github/workflows/actions-versions.main.kts' - - id: step-3 + - id: step-2 name: Consistency check run: git diff --exit-code '.github/workflows/actions-versions.yaml' updates-available: diff --git a/.github/workflows/build.main.kts b/.github/workflows/build.main.kts index c95187cb1b..35536ee86c 100755 --- a/.github/workflows/build.main.kts +++ b/.github/workflows/build.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.35.0") +@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.36.0") @file:Import("_shared.main.kts") import it.krzeminski.githubactions.actions.actions.CheckoutV3 diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 943354aa04..8881b1727c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -10,22 +10,16 @@ on: pull_request: {} jobs: check_yaml_consistency: + name: Check YAML consistency runs-on: ubuntu-latest steps: - id: step-0 name: Check out uses: actions/checkout@v3 - id: step-1 - name: Set up Java in proper version - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: zulu - cache: gradle - - id: step-2 name: Execute script run: rm '.github/workflows/build.yaml' && '.github/workflows/build.main.kts' - - id: step-3 + - id: step-2 name: Consistency check run: git diff --exit-code '.github/workflows/build.yaml' build-for-UbuntuLatest: diff --git a/.github/workflows/check-if-wrappers-up-to-date.main.kts b/.github/workflows/check-if-wrappers-up-to-date.main.kts index 2b39b29d92..36acf89254 100755 --- a/.github/workflows/check-if-wrappers-up-to-date.main.kts +++ b/.github/workflows/check-if-wrappers-up-to-date.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.35.0") +@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.36.0") @file:Import("_shared.main.kts") import it.krzeminski.githubactions.actions.actions.CheckoutV3 diff --git a/.github/workflows/check-if-wrappers-up-to-date.yaml b/.github/workflows/check-if-wrappers-up-to-date.yaml index 7ac2a8c7c3..b09cd870d3 100644 --- a/.github/workflows/check-if-wrappers-up-to-date.yaml +++ b/.github/workflows/check-if-wrappers-up-to-date.yaml @@ -11,22 +11,16 @@ on: workflow_dispatch: {} jobs: check_yaml_consistency: + name: Check YAML consistency runs-on: ubuntu-latest steps: - id: step-0 name: Check out uses: actions/checkout@v3 - id: step-1 - name: Set up Java in proper version - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: zulu - cache: gradle - - id: step-2 name: Execute script run: rm '.github/workflows/check-if-wrappers-up-to-date.yaml' && '.github/workflows/check-if-wrappers-up-to-date.main.kts' - - id: step-3 + - id: step-2 name: Consistency check run: git diff --exit-code '.github/workflows/check-if-wrappers-up-to-date.yaml' check-on-UbuntuLatest: diff --git a/.github/workflows/gradle-wrapper-validation.main.kts b/.github/workflows/gradle-wrapper-validation.main.kts index 11b5803cce..6476ce0fda 100755 --- a/.github/workflows/gradle-wrapper-validation.main.kts +++ b/.github/workflows/gradle-wrapper-validation.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.35.0") +@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.36.0") import it.krzeminski.githubactions.actions.actions.CheckoutV3 import it.krzeminski.githubactions.actions.gradle.WrapperValidationActionV1 diff --git a/.github/workflows/gradle-wrapper-validation.yaml b/.github/workflows/gradle-wrapper-validation.yaml index 3dab7eafe4..24f3b7310d 100644 --- a/.github/workflows/gradle-wrapper-validation.yaml +++ b/.github/workflows/gradle-wrapper-validation.yaml @@ -14,22 +14,16 @@ on: - gradle/wrapper/gradle-wrapper.jar jobs: check_yaml_consistency: + name: Check YAML consistency runs-on: ubuntu-latest steps: - id: step-0 name: Check out uses: actions/checkout@v3 - id: step-1 - name: Set up Java in proper version - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: zulu - cache: gradle - - id: step-2 name: Execute script run: rm '.github/workflows/gradle-wrapper-validation.yaml' && '.github/workflows/gradle-wrapper-validation.main.kts' - - id: step-3 + - id: step-2 name: Consistency check run: git diff --exit-code '.github/workflows/gradle-wrapper-validation.yaml' validation: diff --git a/.github/workflows/release.main.kts b/.github/workflows/release.main.kts index d5eb6cbd6b..8d174c839e 100755 --- a/.github/workflows/release.main.kts +++ b/.github/workflows/release.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.35.0") +@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.36.0") @file:Import("_shared.main.kts") import it.krzeminski.githubactions.actions.actions.CheckoutV3 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index dd5c337008..d14ddab945 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -14,22 +14,16 @@ env: ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }} jobs: check_yaml_consistency: + name: Check YAML consistency runs-on: ubuntu-latest steps: - id: step-0 name: Check out uses: actions/checkout@v3 - id: step-1 - name: Set up Java in proper version - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: zulu - cache: gradle - - id: step-2 name: Execute script run: rm '.github/workflows/release.yaml' && '.github/workflows/release.main.kts' - - id: step-3 + - id: step-2 name: Consistency check run: git diff --exit-code '.github/workflows/release.yaml' release: From 9a3d89941c15a8ba05e6a9aabbedb2868aa4efeb Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 3 Feb 2023 18:29:47 +0000 Subject: [PATCH 02/25] chore(deps): update dependency mkdocs-material to v9.0.11 --- docs/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 8334aca397..9138e6a5e5 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,5 +1,5 @@ mkdocs==1.4.2 mkdocs-markdownextradata-plugin==0.2.5 -mkdocs-material==9.0.10 +mkdocs-material==9.0.11 mkdocs-material-extensions==1.1.1 mkdocs-video==1.3.0 From 33a4f7fb157160a8610d6be6af91d5cdf959b435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Krzemi=C5=84ski?= <3110813+krzema12@users.noreply.github.com> Date: Sat, 4 Feb 2023 06:14:26 +0100 Subject: [PATCH 03/25] feat(actions): use typings provided by setup-msbuild@v1 (#673) --- .../setup-msbuild/v1/action-types.yml | 18 ------------------ .../microsoft/setup-msbuild/v1/commit-hash.txt | 2 +- .../setup-msbuild/v1/typings-hosted-by-action | 1 + docs/supported-actions.md | 4 ++-- .../actions/microsoft/SetupMsbuildV1.kt | 6 ++++-- 5 files changed, 8 insertions(+), 23 deletions(-) delete mode 100644 actions/microsoft/setup-msbuild/v1/action-types.yml create mode 100644 actions/microsoft/setup-msbuild/v1/typings-hosted-by-action diff --git a/actions/microsoft/setup-msbuild/v1/action-types.yml b/actions/microsoft/setup-msbuild/v1/action-types.yml deleted file mode 100644 index e143d474b2..0000000000 --- a/actions/microsoft/setup-msbuild/v1/action-types.yml +++ /dev/null @@ -1,18 +0,0 @@ -# See https://github.com/krzema12/github-actions-typing -inputs: - vswhere-path: - type: string - vs-version: - type: string - vs-prerelease: - type: boolean - msbuild-architecture: - type: enum - name: Architecture - allowed-values: - - x86 - - x64 -# Please check those outputs's description and set a proper type. 'string' is just set by default -outputs: - msbuildPath: - type: string diff --git a/actions/microsoft/setup-msbuild/v1/commit-hash.txt b/actions/microsoft/setup-msbuild/v1/commit-hash.txt index 0c9645a4d6..e2b70bc940 100644 --- a/actions/microsoft/setup-msbuild/v1/commit-hash.txt +++ b/actions/microsoft/setup-msbuild/v1/commit-hash.txt @@ -1 +1 @@ -34cfbaee7f672c76950673338facd8a73f637506 \ No newline at end of file +1ff57057b5cfdc39105cd07a01d78e9b0ea0c14c diff --git a/actions/microsoft/setup-msbuild/v1/typings-hosted-by-action b/actions/microsoft/setup-msbuild/v1/typings-hosted-by-action new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/actions/microsoft/setup-msbuild/v1/typings-hosted-by-action @@ -0,0 +1 @@ + diff --git a/docs/supported-actions.md b/docs/supported-actions.md index 249d50bd2b..149e876440 100644 --- a/docs/supported-actions.md +++ b/docs/supported-actions.md @@ -94,7 +94,7 @@ Click on a version to see the wrapper's code. * mi-kas * [kover-report](https://github.com/mi-kas/kover-report) - v1 ✅: [`KoverReportV1`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/mikas/KoverReportV1.kt) * microsoft - * [setup-msbuild](https://github.com/microsoft/setup-msbuild) - v1: [`SetupMsbuildV1`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/microsoft/SetupMsbuildV1.kt) + * [setup-msbuild](https://github.com/microsoft/setup-msbuild) - v1 ✅: [`SetupMsbuildV1`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/microsoft/SetupMsbuildV1.kt) * nobrayner * [discord-webhook](https://github.com/nobrayner/discord-webhook) - v1: [`DiscordWebhookV1`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/nobrayner/DiscordWebhookV1.kt) * peaceiris @@ -127,4 +127,4 @@ Number of wrappers available: * counting by actions: 73 * counting each version separately: 98 -Actions [providing typings](https://github.com/krzema12/github-actions-typing/) (marked with ✅ on the above list): 11 +Actions [providing typings](https://github.com/krzema12/github-actions-typing/) (marked with ✅ on the above list): 12 diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/microsoft/SetupMsbuildV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/microsoft/SetupMsbuildV1.kt index 68303ac220..0b76aacbf2 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/microsoft/SetupMsbuildV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/microsoft/SetupMsbuildV1.kt @@ -33,8 +33,8 @@ public data class SetupMsbuildV1( */ public val vsPrerelease: Boolean? = null, /** - * The preferred processor architecture of MSBuild. Can be either "x86" or "x64". "x64" is only - * available from Visual Studio version 17.0 and later. + * The preferred processor architecture of MSBuild. Can be either "x86", "x64", or "arm64". + * "x64" is only available from Visual Studio version 17.0 and later. */ public val msbuildArchitecture: SetupMsbuildV1.Architecture? = null, /** @@ -68,6 +68,8 @@ public data class SetupMsbuildV1( public object X64 : SetupMsbuildV1.Architecture("x64") + public object Arm64 : SetupMsbuildV1.Architecture("arm64") + public class Custom( customStringValue: String, ) : SetupMsbuildV1.Architecture(customStringValue) From 63843069925cd68bd58efb496cee10cbee9ccb9e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 5 Feb 2023 23:48:06 +0000 Subject: [PATCH 04/25] chore(deps): update dependency io.kotest:kotest-bom to v5.5.5 --- .../src/main/kotlin/buildsrc/convention/kotlin-jvm.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/buildsrc/convention/kotlin-jvm.gradle.kts b/buildSrc/src/main/kotlin/buildsrc/convention/kotlin-jvm.gradle.kts index 12ec2d41de..4fd13caf80 100644 --- a/buildSrc/src/main/kotlin/buildsrc/convention/kotlin-jvm.gradle.kts +++ b/buildSrc/src/main/kotlin/buildsrc/convention/kotlin-jvm.gradle.kts @@ -11,7 +11,7 @@ plugins { } dependencies { - testImplementation(platform("io.kotest:kotest-bom:5.5.4")) + testImplementation(platform("io.kotest:kotest-bom:5.5.5")) testImplementation("io.kotest:kotest-assertions-core") testImplementation("io.kotest:kotest-runner-junit5") } From 3ebc93f6bd64f8fa2f04587c3e3c2dad955b2ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Mon, 6 Feb 2023 08:14:25 +0100 Subject: [PATCH 05/25] feat(library)!: allow inserting original preamble and trim whitespaces (#671) --- library/api/library.api | 25 ++- .../krzeminski/githubactions/yaml/Preamble.kt | 7 + .../krzeminski/githubactions/yaml/ToYaml.kt | 48 ++--- .../githubactions/IntegrationTest.kt | 176 +++++++++++++++++- 4 files changed, 226 insertions(+), 30 deletions(-) create mode 100644 library/src/main/kotlin/it/krzeminski/githubactions/yaml/Preamble.kt diff --git a/library/api/library.api b/library/api/library.api index 526b2cda6c..02191894df 100644 --- a/library/api/library.api +++ b/library/api/library.api @@ -2758,11 +2758,28 @@ public final class it/krzeminski/githubactions/yaml/JobsToYamlKt { public static final fun toYaml (Lit/krzeminski/githubactions/domain/RunnerType;)Ljava/lang/String; } +public abstract class it/krzeminski/githubactions/yaml/Preamble { + public synthetic fun (Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun getContent ()Ljava/lang/String; +} + +public final class it/krzeminski/githubactions/yaml/Preamble$Just : it/krzeminski/githubactions/yaml/Preamble { + public fun (Ljava/lang/String;)V +} + +public final class it/krzeminski/githubactions/yaml/Preamble$WithOriginalAfter : it/krzeminski/githubactions/yaml/Preamble { + public fun (Ljava/lang/String;)V +} + +public final class it/krzeminski/githubactions/yaml/Preamble$WithOriginalBefore : it/krzeminski/githubactions/yaml/Preamble { + public fun (Ljava/lang/String;)V +} + public final class it/krzeminski/githubactions/yaml/ToYamlKt { - public static final fun toYaml (Lit/krzeminski/githubactions/domain/Workflow;ZLjava/nio/file/Path;Ljava/lang/String;)Ljava/lang/String; - public static synthetic fun toYaml$default (Lit/krzeminski/githubactions/domain/Workflow;ZLjava/nio/file/Path;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String; - public static final fun writeToFile (Lit/krzeminski/githubactions/domain/Workflow;ZLjava/nio/file/Path;Ljava/lang/String;)V - public static synthetic fun writeToFile$default (Lit/krzeminski/githubactions/domain/Workflow;ZLjava/nio/file/Path;Ljava/lang/String;ILjava/lang/Object;)V + public static final fun toYaml (Lit/krzeminski/githubactions/domain/Workflow;ZLjava/nio/file/Path;Lit/krzeminski/githubactions/yaml/Preamble;)Ljava/lang/String; + public static synthetic fun toYaml$default (Lit/krzeminski/githubactions/domain/Workflow;ZLjava/nio/file/Path;Lit/krzeminski/githubactions/yaml/Preamble;ILjava/lang/Object;)Ljava/lang/String; + public static final fun writeToFile (Lit/krzeminski/githubactions/domain/Workflow;ZLjava/nio/file/Path;Lit/krzeminski/githubactions/yaml/Preamble;)V + public static synthetic fun writeToFile$default (Lit/krzeminski/githubactions/domain/Workflow;ZLjava/nio/file/Path;Lit/krzeminski/githubactions/yaml/Preamble;ILjava/lang/Object;)V } public final class it/krzeminski/githubactions/yaml/TriggersToYamlKt { diff --git a/library/src/main/kotlin/it/krzeminski/githubactions/yaml/Preamble.kt b/library/src/main/kotlin/it/krzeminski/githubactions/yaml/Preamble.kt new file mode 100644 index 0000000000..115b24a19a --- /dev/null +++ b/library/src/main/kotlin/it/krzeminski/githubactions/yaml/Preamble.kt @@ -0,0 +1,7 @@ +package it.krzeminski.githubactions.yaml + +public sealed class Preamble(public val content: String) { + public class Just(content: String) : Preamble(content) + public class WithOriginalBefore(content: String) : Preamble(content) + public class WithOriginalAfter(content: String) : Preamble(content) +} diff --git a/library/src/main/kotlin/it/krzeminski/githubactions/yaml/ToYaml.kt b/library/src/main/kotlin/it/krzeminski/githubactions/yaml/ToYaml.kt index 870b71c200..ca49f893d3 100644 --- a/library/src/main/kotlin/it/krzeminski/githubactions/yaml/ToYaml.kt +++ b/library/src/main/kotlin/it/krzeminski/githubactions/yaml/ToYaml.kt @@ -7,6 +7,9 @@ import it.krzeminski.githubactions.domain.Workflow import it.krzeminski.githubactions.dsl.toBuilder import it.krzeminski.githubactions.internal.findGitRoot import it.krzeminski.githubactions.internal.relativeToAbsolute +import it.krzeminski.githubactions.yaml.Preamble.Just +import it.krzeminski.githubactions.yaml.Preamble.WithOriginalAfter +import it.krzeminski.githubactions.yaml.Preamble.WithOriginalBefore import java.nio.file.Path import kotlin.io.path.absolute import kotlin.io.path.invariantSeparatorsPathString @@ -14,7 +17,7 @@ import kotlin.io.path.invariantSeparatorsPathString public fun Workflow.toYaml( addConsistencyCheck: Boolean = sourceFile != null, gitRootDir: Path? = sourceFile?.absolute()?.findGitRoot(), - preamble: String? = null, + preamble: Preamble? = null, ): String { return generateYaml( addConsistencyCheck = addConsistencyCheck, @@ -27,7 +30,7 @@ public fun Workflow.toYaml( public fun Workflow.writeToFile( addConsistencyCheck: Boolean = sourceFile != null, gitRootDir: Path? = sourceFile?.absolute()?.findGitRoot(), - preamble: String? = null, + preamble: Preamble? = null, ) { checkNotNull(gitRootDir) { "gitRootDir must be specified explicitly when sourceFile is null" @@ -55,7 +58,7 @@ private fun commentify(preamble: String): String { return preamble .lineSequence() - .joinToString("\n", postfix = "\n\n") { "# $it" } + .joinToString("\n", postfix = "\n\n") { "# $it".trimEnd() } } @Suppress("LongMethod") @@ -63,7 +66,7 @@ private fun Workflow.generateYaml( addConsistencyCheck: Boolean, useGitDiff: Boolean, gitRootDir: Path?, - preamble: String?, + preamble: Preamble?, ): String { val sourceFilePath = gitRootDir?.let { sourceFile?.relativeToAbsolute(gitRootDir)?.invariantSeparatorsPathString @@ -113,24 +116,27 @@ private fun Workflow.generateYaml( jobs } - val computedPreamble = if (preamble != null) { - commentify(preamble) - } else if (sourceFilePath != null) { - """ - # This file was generated using Kotlin DSL ($sourceFilePath). - # If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file. - # Generated with https://github.com/krzema12/github-workflows-kt - - - """.trimIndent() - } else { - """ - # This file was generated using a Kotlin DSL. - # If you want to modify the workflow, please change the Kotlin source and regenerate this YAML file. - # Generated with https://github.com/krzema12/github-workflows-kt - + val originalPreamble = commentify( + if (sourceFilePath != null) { + """ + This file was generated using Kotlin DSL ($sourceFilePath). + If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file. + Generated with https://github.com/krzema12/github-workflows-kt + """.trimIndent() + } else { + """ + This file was generated using a Kotlin DSL. + If you want to modify the workflow, please change the Kotlin source and regenerate this YAML file. + Generated with https://github.com/krzema12/github-workflows-kt + """.trimIndent() + }, + ) - """.trimIndent() + val computedPreamble = when (preamble) { + is Just -> commentify(preamble.content) + is WithOriginalAfter -> commentify(preamble.content) + originalPreamble + is WithOriginalBefore -> originalPreamble + commentify(preamble.content) + null -> originalPreamble } val workflowToBeSerialized = this.toYamlInternal(jobsWithConsistencyCheck) diff --git a/library/src/test/kotlin/it/krzeminski/githubactions/IntegrationTest.kt b/library/src/test/kotlin/it/krzeminski/githubactions/IntegrationTest.kt index a0cebc2be5..b11ccee6d4 100644 --- a/library/src/test/kotlin/it/krzeminski/githubactions/IntegrationTest.kt +++ b/library/src/test/kotlin/it/krzeminski/githubactions/IntegrationTest.kt @@ -17,6 +17,9 @@ import it.krzeminski.githubactions.dsl.WorkflowBuilder import it.krzeminski.githubactions.dsl.expressions.Contexts import it.krzeminski.githubactions.dsl.expressions.expr import it.krzeminski.githubactions.dsl.workflow +import it.krzeminski.githubactions.yaml.Preamble.Just +import it.krzeminski.githubactions.yaml.Preamble.WithOriginalAfter +import it.krzeminski.githubactions.yaml.Preamble.WithOriginalBefore import it.krzeminski.githubactions.yaml.toYaml import it.krzeminski.githubactions.yaml.writeToFile import java.nio.file.Path @@ -814,10 +817,12 @@ class IntegrationTest : FunSpec({ test("toYaml() - custom preamble") { val yaml = workflowWithoutSource.toYaml( - preamble = """ - Test preamble - with a second line - """.trimIndent(), + preamble = Just( + """ + Test preamble + with a second line + """.trimIndent(), + ), ) yaml shouldBe """ @@ -837,8 +842,169 @@ class IntegrationTest : FunSpec({ """.trimIndent() } + test("toYaml() - custom preamble with empty line") { + val yaml = workflowWithoutSource.toYaml( + preamble = Just( + """ + Test preamble + + with an empty line + """.trimIndent(), + ), + ) + + yaml shouldBe """ + # Test preamble + # + # with an empty line + + name: test + on: + push: {} + jobs: + test: + runs-on: ubuntu-latest + steps: + - id: step-0 + run: echo 'Hello!' + + """.trimIndent() + } + + test("toYaml() - custom preamble with original after") { + val yaml = workflow.toYaml( + addConsistencyCheck = false, + preamble = WithOriginalAfter( + """ + Test preamble + with original after + """.trimIndent(), + ), + ) + + yaml shouldBe """ + # Test preamble + # with original after + + # This file was generated using Kotlin DSL (.github/workflows/some_workflow.main.kts). + # If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file. + # Generated with https://github.com/krzema12/github-workflows-kt + + name: Test workflow + on: + push: {} + jobs: + test_job: + name: Test Job + runs-on: ubuntu-latest + steps: + - id: step-0 + uses: actions/checkout@v3 + - id: step-1 + run: echo 'hello!' + + """.trimIndent() + } + + test("toYaml() - custom preamble with original after without source") { + val yaml = workflowWithoutSource.toYaml( + preamble = WithOriginalAfter( + """ + Test preamble + with original after + """.trimIndent(), + ), + ) + + yaml shouldBe """ + # Test preamble + # with original after + + # This file was generated using a Kotlin DSL. + # If you want to modify the workflow, please change the Kotlin source and regenerate this YAML file. + # Generated with https://github.com/krzema12/github-workflows-kt + + name: test + on: + push: {} + jobs: + test: + runs-on: ubuntu-latest + steps: + - id: step-0 + run: echo 'Hello!' + + """.trimIndent() + } + + test("toYaml() - custom preamble with original before") { + val yaml = workflow.toYaml( + addConsistencyCheck = false, + preamble = WithOriginalBefore( + """ + Test preamble + with original before + """.trimIndent(), + ), + ) + + yaml shouldBe """ + # This file was generated using Kotlin DSL (.github/workflows/some_workflow.main.kts). + # If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file. + # Generated with https://github.com/krzema12/github-workflows-kt + + # Test preamble + # with original before + + name: Test workflow + on: + push: {} + jobs: + test_job: + name: Test Job + runs-on: ubuntu-latest + steps: + - id: step-0 + uses: actions/checkout@v3 + - id: step-1 + run: echo 'hello!' + + """.trimIndent() + } + + test("toYaml() - custom preamble with original before without source") { + val yaml = workflowWithoutSource.toYaml( + preamble = WithOriginalBefore( + """ + Test preamble + with original before + """.trimIndent(), + ), + ) + + yaml shouldBe """ + # This file was generated using a Kotlin DSL. + # If you want to modify the workflow, please change the Kotlin source and regenerate this YAML file. + # Generated with https://github.com/krzema12/github-workflows-kt + + # Test preamble + # with original before + + name: test + on: + push: {} + jobs: + test: + runs-on: ubuntu-latest + steps: + - id: step-0 + run: echo 'Hello!' + + """.trimIndent() + } + test("toYaml() - no preamble") { - val yaml = workflowWithoutSource.toYaml(preamble = "") + val yaml = workflowWithoutSource.toYaml(preamble = Just("")) yaml shouldBe """ name: test From 5f45a621b9aba292541e1d47c4738aedf491d8d2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 6 Feb 2023 10:49:52 +0000 Subject: [PATCH 06/25] chore(deps): update dependency mkdocs-video to v1.4.0 --- docs/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 9138e6a5e5..3a2f728302 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -2,4 +2,4 @@ mkdocs==1.4.2 mkdocs-markdownextradata-plugin==0.2.5 mkdocs-material==9.0.11 mkdocs-material-extensions==1.1.1 -mkdocs-video==1.3.0 +mkdocs-video==1.4.0 From f71f201fadfebea6913490b2d204b323e8d2f69a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 10 Feb 2023 00:15:46 +0000 Subject: [PATCH 07/25] chore(deps): update dependency mkdocs-material to v9.0.12 --- docs/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 3a2f728302..c760b63c03 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,5 +1,5 @@ mkdocs==1.4.2 mkdocs-markdownextradata-plugin==0.2.5 -mkdocs-material==9.0.11 +mkdocs-material==9.0.12 mkdocs-material-extensions==1.1.1 mkdocs-video==1.4.0 From fb605af36935c642291c34011b498c26444342b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Krzemi=C5=84ski?= <3110813+krzema12@users.noreply.github.com> Date: Sat, 11 Feb 2023 08:41:07 +0100 Subject: [PATCH 08/25] feat(actions): use typings provided by supercharge/mongodb-github-action@v1 (#678) --- .../mongodb-github-action/v1/action-types.yml | 14 -------------- .../mongodb-github-action/v1/commit-hash.txt | 2 +- .../v1/typings-hosted-by-action | 0 docs/supported-actions.md | 4 ++-- 4 files changed, 3 insertions(+), 17 deletions(-) delete mode 100644 actions/supercharge/mongodb-github-action/v1/action-types.yml create mode 100644 actions/supercharge/mongodb-github-action/v1/typings-hosted-by-action diff --git a/actions/supercharge/mongodb-github-action/v1/action-types.yml b/actions/supercharge/mongodb-github-action/v1/action-types.yml deleted file mode 100644 index 11bbc12784..0000000000 --- a/actions/supercharge/mongodb-github-action/v1/action-types.yml +++ /dev/null @@ -1,14 +0,0 @@ -# See https://github.com/krzema12/github-actions-typing -inputs: - mongodb-version: - type: string - mongodb-replica-set: - type: string - mongodb-port: - type: integer - mongodb-db: - type: string - mongodb-username: - type: string - mongodb-password: - type: string diff --git a/actions/supercharge/mongodb-github-action/v1/commit-hash.txt b/actions/supercharge/mongodb-github-action/v1/commit-hash.txt index 68c2f54307..a293274a54 100644 --- a/actions/supercharge/mongodb-github-action/v1/commit-hash.txt +++ b/actions/supercharge/mongodb-github-action/v1/commit-hash.txt @@ -1 +1 @@ -bcac5e5fa3339cc2b90864fd6b2042f65537d348 \ No newline at end of file +3a309d95bf59f4933ea40e4fed6a94e47dc62705 \ No newline at end of file diff --git a/actions/supercharge/mongodb-github-action/v1/typings-hosted-by-action b/actions/supercharge/mongodb-github-action/v1/typings-hosted-by-action new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/supported-actions.md b/docs/supported-actions.md index 149e876440..b0e15a9117 100644 --- a/docs/supported-actions.md +++ b/docs/supported-actions.md @@ -116,7 +116,7 @@ Click on a version to see the wrapper's code. * subosito * [flutter-action](https://github.com/subosito/flutter-action) - v2: [`FlutterActionV2`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/subosito/FlutterActionV2.kt) * supercharge - * [mongodb-github-action](https://github.com/supercharge/mongodb-github-action) - v1: [`MongodbGithubActionV1`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/supercharge/MongodbGithubActionV1.kt) + * [mongodb-github-action](https://github.com/supercharge/mongodb-github-action) - v1 ✅: [`MongodbGithubActionV1`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/supercharge/MongodbGithubActionV1.kt) * Vampire * [setup-wsl](https://github.com/Vampire/setup-wsl) - v1 ✅: [`SetupWslV1`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV1.kt), v2 ✅: [`SetupWslV2`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV2.kt) @@ -127,4 +127,4 @@ Number of wrappers available: * counting by actions: 73 * counting each version separately: 98 -Actions [providing typings](https://github.com/krzema12/github-actions-typing/) (marked with ✅ on the above list): 12 +Actions [providing typings](https://github.com/krzema12/github-actions-typing/) (marked with ✅ on the above list): 13 From f2791a136b80ac0f93f5a015b94c0ad00e5e237b Mon Sep 17 00:00:00 2001 From: Piotr Krzeminski Date: Sun, 12 Feb 2023 20:30:14 +0100 Subject: [PATCH 09/25] [#676] feat(actions): add cachix/install-nix-action@v19 --- .../install-nix-action/v19/action-types.yml | 15 +++++ .../install-nix-action/v19/commit-hash.txt | 1 + docs/supported-actions.md | 4 +- .../actions/cachix/InstallNixActionV17.kt | 4 +- .../actions/cachix/InstallNixActionV18.kt | 7 ++ .../actions/cachix/InstallNixActionV19.kt | 64 +++++++++++++++++++ 6 files changed, 91 insertions(+), 4 deletions(-) create mode 100644 actions/cachix/install-nix-action/v19/action-types.yml create mode 100644 actions/cachix/install-nix-action/v19/commit-hash.txt create mode 100644 library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV19.kt diff --git a/actions/cachix/install-nix-action/v19/action-types.yml b/actions/cachix/install-nix-action/v19/action-types.yml new file mode 100644 index 0000000000..f9cd82de5e --- /dev/null +++ b/actions/cachix/install-nix-action/v19/action-types.yml @@ -0,0 +1,15 @@ +# See https://github.com/krzema12/github-actions-typing +inputs: + github_access_token: + type: string + install_url: + type: string + install_options: + type: list + separator: "\n" + list-item: + type: string + nix_path: + type: string + extra_nix_config: + type: string diff --git a/actions/cachix/install-nix-action/v19/commit-hash.txt b/actions/cachix/install-nix-action/v19/commit-hash.txt new file mode 100644 index 0000000000..f4c4a81cf6 --- /dev/null +++ b/actions/cachix/install-nix-action/v19/commit-hash.txt @@ -0,0 +1 @@ +5c11eae19dba042788936d4f1c9685fdd814ac49 \ No newline at end of file diff --git a/docs/supported-actions.md b/docs/supported-actions.md index b0e15a9117..615e033968 100644 --- a/docs/supported-actions.md +++ b/docs/supported-actions.md @@ -54,7 +54,7 @@ Click on a version to see the wrapper's code. * [browserslist-update-action](https://github.com/c2corg/browserslist-update-action) - v2 ✅: [`BrowserslistUpdateActionV2`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/BrowserslistUpdateActionV2.kt) * [transifex-pull-request-action](https://github.com/c2corg/transifex-pull-request-action) - v5 ✅: [`TransifexPullRequestActionV5`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/TransifexPullRequestActionV5.kt) * cachix - * [install-nix-action](https://github.com/cachix/install-nix-action) - v17: [`InstallNixActionV17`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV17.kt), v18: [`InstallNixActionV18`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV18.kt) + * [install-nix-action](https://github.com/cachix/install-nix-action) - v17: [`InstallNixActionV17`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV17.kt), v18: [`InstallNixActionV18`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV18.kt), v19: [`InstallNixActionV19`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV19.kt) * codecov * [codecov-action](https://github.com/codecov/codecov-action) - v3: [`CodecovActionV3`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/codecov/CodecovActionV3.kt) * docker @@ -125,6 +125,6 @@ Click on a version to see the wrapper's code. Number of wrappers available: * counting by actions: 73 -* counting each version separately: 98 +* counting each version separately: 99 Actions [providing typings](https://github.com/krzema12/github-actions-typing/) (marked with ✅ on the above list): 13 diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV17.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV17.kt index 8a3671436e..e48d42eece 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV17.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV17.kt @@ -23,8 +23,8 @@ import kotlin.collections.toTypedArray * [Action on GitHub](https://github.com/cachix/install-nix-action) */ @Deprecated( - message = "This action has a newer major version: InstallNixActionV18", - replaceWith = ReplaceWith("InstallNixActionV18"), + message = "This action has a newer major version: InstallNixActionV19", + replaceWith = ReplaceWith("InstallNixActionV19"), ) public data class InstallNixActionV17( /** diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV18.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV18.kt index 240c552c7e..381653f7af 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV18.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV18.kt @@ -1,10 +1,13 @@ // This file was generated using 'wrapper-generator' module. Don't change it by hand, your changes will // be overwritten with the next wrapper code regeneration. Instead, consider introducing changes to the // generator itself. +@file:Suppress("DEPRECATION") + package it.krzeminski.githubactions.actions.cachix import it.krzeminski.githubactions.actions.Action import java.util.LinkedHashMap +import kotlin.Deprecated import kotlin.String import kotlin.Suppress import kotlin.collections.List @@ -19,6 +22,10 @@ import kotlin.collections.toTypedArray * * [Action on GitHub](https://github.com/cachix/install-nix-action) */ +@Deprecated( + message = "This action has a newer major version: InstallNixActionV19", + replaceWith = ReplaceWith("InstallNixActionV19"), +) public data class InstallNixActionV18( /** * Installation URL that will contain a script to install Nix. diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV19.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV19.kt new file mode 100644 index 0000000000..87d1126864 --- /dev/null +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV19.kt @@ -0,0 +1,64 @@ +// This file was generated using 'wrapper-generator' module. Don't change it by hand, your changes will +// be overwritten with the next wrapper code regeneration. Instead, consider introducing changes to the +// generator itself. +package it.krzeminski.githubactions.actions.cachix + +import it.krzeminski.githubactions.actions.Action +import java.util.LinkedHashMap +import kotlin.String +import kotlin.Suppress +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.collections.toList +import kotlin.collections.toTypedArray + +/** + * Action: Install Nix + * + * Installs Nix on GitHub Actions for the supported platforms: Linux and macOS. + * + * [Action on GitHub](https://github.com/cachix/install-nix-action) + */ +public data class InstallNixActionV19( + /** + * Gets appended to `/etc/nix/nix.conf` if passed. + */ + public val extraNixConfig: String? = null, + /** + * Configure nix to pull from github using the given github token. + */ + public val githubAccessToken: String? = null, + /** + * Installation URL that will contain a script to install Nix. + */ + public val installUrl: String? = null, + /** + * Additional installer flags passed to the installer script. + */ + public val installOptions: List? = null, + /** + * Set NIX_PATH environment variable. + */ + public val nixPath: String? = null, + /** + * Type-unsafe map where you can put any inputs that are not yet supported by the wrapper + */ + public val _customInputs: Map = mapOf(), + /** + * Allows overriding action's version, for example to use a specific minor version, or a newer + * version that the wrapper doesn't yet know about + */ + public val _customVersion: String? = null, +) : Action("cachix", "install-nix-action", _customVersion ?: "v19") { + @Suppress("SpreadOperator") + public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( + *listOfNotNull( + extraNixConfig?.let { "extra_nix_config" to it }, + githubAccessToken?.let { "github_access_token" to it }, + installUrl?.let { "install_url" to it }, + installOptions?.let { "install_options" to it.joinToString("\n") }, + nixPath?.let { "nix_path" to it }, + *_customInputs.toList().toTypedArray(), + ).toTypedArray() + ) +} From d01462dda3a3d1c677600e4f77ed9d9dcb1a0252 Mon Sep 17 00:00:00 2001 From: Piotr Krzeminski Date: Sun, 12 Feb 2023 20:32:45 +0100 Subject: [PATCH 10/25] [#676] feat(actions): add madhead/intellij-http-client-action@v231 --- .../v231/commit-hash.txt | 1 + .../v231/typings-hosted-by-action | 0 docs/supported-actions.md | 4 +- .../madhead/IntellijHttpClientActionV0.kt | 7 ++ .../madhead/IntellijHttpClientActionV231.kt | 116 ++++++++++++++++++ 5 files changed, 126 insertions(+), 2 deletions(-) create mode 100644 actions/madhead/intellij-http-client-action/v231/commit-hash.txt create mode 100644 actions/madhead/intellij-http-client-action/v231/typings-hosted-by-action create mode 100644 library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV231.kt diff --git a/actions/madhead/intellij-http-client-action/v231/commit-hash.txt b/actions/madhead/intellij-http-client-action/v231/commit-hash.txt new file mode 100644 index 0000000000..5337dc79cd --- /dev/null +++ b/actions/madhead/intellij-http-client-action/v231/commit-hash.txt @@ -0,0 +1 @@ +28d52a8953cd5b9b4977556111c57f3fe4842262 \ No newline at end of file diff --git a/actions/madhead/intellij-http-client-action/v231/typings-hosted-by-action b/actions/madhead/intellij-http-client-action/v231/typings-hosted-by-action new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/supported-actions.md b/docs/supported-actions.md index 615e033968..f78b224d7d 100644 --- a/docs/supported-actions.md +++ b/docs/supported-actions.md @@ -89,7 +89,7 @@ Click on a version to see the wrapper's code. * [github-actions-typing](https://github.com/krzema12/github-actions-typing) - v0 ✅: [`GithubActionsTypingV0`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV0.kt), v1 ✅: [`GithubActionsTypingV1`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV1.kt) * madhead * [check-gradle-version](https://github.com/madhead/check-gradle-version) - v1 ✅: [`CheckGradleVersionV1`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/CheckGradleVersionV1.kt) - * [intellij-http-client-action](https://github.com/madhead/intellij-http-client-action) - v0 ✅: [`IntellijHttpClientActionV0`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV0.kt) + * [intellij-http-client-action](https://github.com/madhead/intellij-http-client-action) - v0 ✅: [`IntellijHttpClientActionV0`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV0.kt), v231 ✅: [`IntellijHttpClientActionV231`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV231.kt) * [semver-utils](https://github.com/madhead/semver-utils) - v2 ✅: [`SemverUtilsV2`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV2.kt), v3 ✅: [`SemverUtilsV3`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV3.kt) * mi-kas * [kover-report](https://github.com/mi-kas/kover-report) - v1 ✅: [`KoverReportV1`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/mikas/KoverReportV1.kt) @@ -125,6 +125,6 @@ Click on a version to see the wrapper's code. Number of wrappers available: * counting by actions: 73 -* counting each version separately: 99 +* counting each version separately: 100 Actions [providing typings](https://github.com/krzema12/github-actions-typing/) (marked with ✅ on the above list): 13 diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV0.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV0.kt index 2d1280d411..0956600280 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV0.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV0.kt @@ -1,11 +1,14 @@ // This file was generated using 'wrapper-generator' module. Don't change it by hand, your changes will // be overwritten with the next wrapper code regeneration. Instead, consider introducing changes to the // generator itself. +@file:Suppress("DEPRECATION") + package it.krzeminski.githubactions.actions.madhead import it.krzeminski.githubactions.actions.Action import java.util.LinkedHashMap import kotlin.Boolean +import kotlin.Deprecated import kotlin.Int import kotlin.String import kotlin.Suppress @@ -21,6 +24,10 @@ import kotlin.collections.toTypedArray * * [Action on GitHub](https://github.com/madhead/intellij-http-client-action) */ +@Deprecated( + message = "This action has a newer major version: IntellijHttpClientActionV231", + replaceWith = ReplaceWith("IntellijHttpClientActionV231"), +) public data class IntellijHttpClientActionV0( /** * HTTP file paths diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV231.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV231.kt new file mode 100644 index 0000000000..29ba7c2ac1 --- /dev/null +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV231.kt @@ -0,0 +1,116 @@ +// This file was generated using 'wrapper-generator' module. Don't change it by hand, your changes will +// be overwritten with the next wrapper code regeneration. Instead, consider introducing changes to the +// generator itself. +package it.krzeminski.githubactions.actions.madhead + +import it.krzeminski.githubactions.actions.Action +import java.util.LinkedHashMap +import kotlin.Boolean +import kotlin.Int +import kotlin.String +import kotlin.Suppress +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.collections.toList +import kotlin.collections.toTypedArray + +/** + * Action: intellij-http-client-action + * + * IntelliJ HTTP Client CLI GitHub Action – Run Requests and Tests on CI + * + * [Action on GitHub](https://github.com/madhead/intellij-http-client-action) + */ +public data class IntellijHttpClientActionV231( + /** + * HTTP file paths + */ + public val files: List, + /** + * Number of milliseconds for socket read + */ + public val socketTimeout: Int? = null, + /** + * Number of milliseconds for connection + */ + public val connectTimeout: Int? = null, + /** + * Allow insecure SSL connections + */ + public val insecure: Boolean? = null, + /** + * Name of the environment in config file + */ + public val env: String? = null, + /** + * Name of the public environment file + */ + public val envFile: String? = null, + /** + * Public environment variables ('key=value') + */ + public val envVariables: List? = null, + /** + * Name of the private environment file + */ + public val privateEnvFile: String? = null, + /** + * Private environment variables ('key=value') + */ + public val privateEnvVariables: List? = null, + /** + * Enables Docker mode. Treat 'localhost' as 'host.docker.internal' + */ + public val dockerMode: Boolean? = null, + /** + * Logging level. One of 'BASIC' (default), 'HEADERS', or 'VERBOSE' + */ + public val logLevel: IntellijHttpClientActionV231.LogLevel? = null, + /** + * Creates report about execution in JUnit XML Format. Puts it in folder 'reports' in the + * current directory + */ + public val report: Boolean? = null, + /** + * Type-unsafe map where you can put any inputs that are not yet supported by the wrapper + */ + public val _customInputs: Map = mapOf(), + /** + * Allows overriding action's version, for example to use a specific minor version, or a newer + * version that the wrapper doesn't yet know about + */ + public val _customVersion: String? = null, +) : Action("madhead", "intellij-http-client-action", _customVersion ?: "v231") { + @Suppress("SpreadOperator") + public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( + *listOfNotNull( + "files" to files.joinToString(" "), + socketTimeout?.let { "socket_timeout" to it.toString() }, + connectTimeout?.let { "connect_timeout" to it.toString() }, + insecure?.let { "insecure" to it.toString() }, + env?.let { "env" to it }, + envFile?.let { "env_file" to it }, + envVariables?.let { "env_variables" to it.joinToString("\n") }, + privateEnvFile?.let { "private_env_file" to it }, + privateEnvVariables?.let { "private_env_variables" to it.joinToString("\n") }, + dockerMode?.let { "docker_mode" to it.toString() }, + logLevel?.let { "log_level" to it.stringValue }, + report?.let { "report" to it.toString() }, + *_customInputs.toList().toTypedArray(), + ).toTypedArray() + ) + + public sealed class LogLevel( + public val stringValue: String, + ) { + public object Basic : IntellijHttpClientActionV231.LogLevel("BASIC") + + public object Headers : IntellijHttpClientActionV231.LogLevel("HEADERS") + + public object Verbose : IntellijHttpClientActionV231.LogLevel("VERBOSE") + + public class Custom( + customStringValue: String, + ) : IntellijHttpClientActionV231.LogLevel(customStringValue) + } +} From eaeba522d904c6b9f6b4f5f548b83f738a29636d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Krzemi=C5=84ski?= <3110813+krzema12@users.noreply.github.com> Date: Mon, 13 Feb 2023 17:31:02 +0100 Subject: [PATCH 11/25] chore(library)!: move base classes for actions to 'domain' (#680) This way it's easy to separate the base classes from the generated wrappers. It's useful in various situations, like generating docs. --- .../wrappergenerator/generation/Generation.kt | 4 +- ...ActionWithDeprecatedInputAndNameClashV2.kt | 2 +- .../ActionWithInputsSharingTypeV3.kt | 2 +- .../ActionWithNoInputsV3.kt | 2 +- .../ActionWithNonStringInputsV3.kt | 2 +- .../ActionWithOutputsV3.kt | 2 +- .../ActionWithSomeOptionalInputsV3.kt | 2 +- .../DeprecatedActionV2.kt | 2 +- .../SimpleActionWithListsV3.kt | 2 +- .../SimpleActionWithRequiredStringInputsV3.kt | 2 +- library/api/library.api | 68 ++++++++++++++----- .../actions/8398a7/ActionSlackV3.kt | 2 +- .../actions/actions/CacheRestoreV3.kt | 2 +- .../actions/actions/CacheSaveV3.kt | 2 +- .../githubactions/actions/actions/CacheV2.kt | 2 +- .../githubactions/actions/actions/CacheV3.kt | 2 +- .../actions/actions/CheckoutV2.kt | 2 +- .../actions/actions/CheckoutV3.kt | 2 +- .../actions/actions/CreateReleaseV1.kt | 2 +- .../actions/actions/DownloadArtifactV2.kt | 2 +- .../actions/actions/DownloadArtifactV3.kt | 2 +- .../actions/actions/FirstInteractionV1.kt | 2 +- .../actions/actions/GithubScriptV6.kt | 2 +- .../actions/actions/LabelerV4.kt | 2 +- .../actions/actions/SetupDotnetV2.kt | 2 +- .../actions/actions/SetupDotnetV3.kt | 2 +- .../actions/actions/SetupGoV3.kt | 2 +- .../actions/actions/SetupJavaV2.kt | 2 +- .../actions/actions/SetupJavaV3.kt | 2 +- .../actions/actions/SetupNodeV2.kt | 2 +- .../actions/actions/SetupNodeV3.kt | 2 +- .../actions/actions/SetupPythonV2.kt | 2 +- .../actions/actions/SetupPythonV3.kt | 2 +- .../actions/actions/SetupPythonV4.kt | 2 +- .../githubactions/actions/actions/StaleV5.kt | 2 +- .../githubactions/actions/actions/StaleV6.kt | 2 +- .../githubactions/actions/actions/StaleV7.kt | 2 +- .../actions/actions/UploadArtifactV2.kt | 2 +- .../actions/actions/UploadArtifactV3.kt | 2 +- .../actions/actionsrs/AuditCheckV1.kt | 2 +- .../actions/actionsrs/CargoV1.kt | 2 +- .../actions/actionsrs/ClippyCheckV1.kt | 2 +- .../actions/actionsrs/ToolchainV1.kt | 2 +- .../actions/anmol098/WakaReadmeStatsV4.kt | 2 +- .../actions/anothrnick/GithubTagActionV1.kt | 2 +- .../actions/awsactions/AmazonEcrLoginV1.kt | 2 +- .../AmazonEcsDeployTaskDefinitionV1.kt | 2 +- .../AmazonEcsRenderTaskDefinitionV1.kt | 2 +- .../awsactions/ConfigureAwsCredentialsV1.kt | 2 +- .../axelop/GooglejavaformatActionV3.kt | 2 +- .../actions/azure/DockerLoginV1.kt | 2 +- .../githubactions/actions/azure/LoginV1.kt | 2 +- .../actions/azure/WebappsDeployV2.kt | 2 +- .../actions/bahmutov/NpmInstallV1.kt | 2 +- .../actions/borales/ActionsYarnV3.kt | 2 +- .../actions/borales/ActionsYarnV4.kt | 2 +- .../actions/burrunan/GradleCacheActionV1.kt | 2 +- .../c2corg/BrowserslistUpdateActionV2.kt | 2 +- .../c2corg/TransifexPullRequestActionV5.kt | 2 +- .../actions/cachix/InstallNixActionV17.kt | 2 +- .../actions/cachix/InstallNixActionV18.kt | 2 +- .../actions/cachix/InstallNixActionV19.kt | 2 +- .../actions/codecov/CodecovActionV3.kt | 2 +- .../actions/docker/BuildPushActionV2.kt | 2 +- .../actions/docker/BuildPushActionV3.kt | 2 +- .../actions/docker/BuildPushActionV4.kt | 2 +- .../actions/docker/LoginActionV1.kt | 2 +- .../actions/docker/LoginActionV2.kt | 2 +- .../actions/docker/SetupBuildxActionV1.kt | 2 +- .../actions/docker/SetupBuildxActionV2.kt | 2 +- .../elgohr/PublishDockerGithubActionV4.kt | 2 +- .../elgohr/PublishDockerGithubActionV5.kt | 2 +- .../actions/endbug/AddAndCommitV8.kt | 2 +- .../actions/endbug/AddAndCommitV9.kt | 2 +- .../GitTagAnnotationActionV2.kt | 2 +- .../gautamkrishnar/BlogPostWorkflowV1.kt | 2 +- .../googlecloudplatform/GithubActionsV0.kt | 2 +- .../googlecloudplatform/GithubActionsV1.kt | 2 +- .../actions/googlegithubactions/AuthV0.kt | 2 +- .../actions/googlegithubactions/AuthV1.kt | 2 +- .../googlegithubactions/SetupGcloudV0.kt | 2 +- .../googlegithubactions/SetupGcloudV1.kt | 2 +- .../actions/gradle/GradleBuildActionV2.kt | 2 +- .../gradle/WrapperValidationActionV1.kt | 2 +- .../UpdateGradleWrapperActionV1.kt | 2 +- .../jamesives/GithubPagesDeployActionV4.kt | 2 +- .../actions/jasonetco/CreateAnIssueV2.kt | 2 +- .../actions/juliaactions/SetupJuliaV1.kt | 2 +- .../actions/krzema12/GithubActionsTypingV0.kt | 2 +- .../actions/krzema12/GithubActionsTypingV1.kt | 2 +- .../actions/madhead/CheckGradleVersionV1.kt | 2 +- .../madhead/IntellijHttpClientActionV0.kt | 2 +- .../madhead/IntellijHttpClientActionV231.kt | 2 +- .../actions/madhead/SemverUtilsV2.kt | 2 +- .../actions/madhead/SemverUtilsV3.kt | 2 +- .../actions/microsoft/SetupMsbuildV1.kt | 2 +- .../actions/mikas/KoverReportV1.kt | 2 +- .../actions/nobrayner/DiscordWebhookV1.kt | 2 +- .../actions/peaceiris/ActionsGhPagesV3.kt | 2 +- .../actions/peaceiris/ActionsHugoV2.kt | 2 +- .../peterevans/CreateIssueFromFileV4.kt | 2 +- .../actions/peterevans/CreatePullRequestV4.kt | 2 +- .../reactivecircus/AndroidEmulatorRunnerV2.kt | 2 +- .../actions/reposync/PullRequestV2.kt | 2 +- .../githubactions/actions/ruby/SetupRubyV1.kt | 2 +- .../actions/softprops/ActionGhReleaseV1.kt | 2 +- .../stefanzweifel/GitAutoCommitActionV4.kt | 2 +- .../actions/subosito/FlutterActionV2.kt | 2 +- .../supercharge/MongodbGithubActionV1.kt | 2 +- .../actions/vampire/SetupWslV1.kt | 2 +- .../actions/vampire/SetupWslV2.kt | 2 +- .../krzeminski/githubactions/domain/Step.kt | 4 +- .../{ => domain}/actions/Action.kt | 2 +- .../{ => domain}/actions/ActionWithOutputs.kt | 2 +- .../{ => domain}/actions/CustomAction.kt | 2 +- .../githubactions/dsl/JobBuilder.kt | 4 +- .../githubactions/yaml/StepsToYaml.kt | 2 +- .../githubactions/actions/CustomActionTest.kt | 1 + .../githubactions/yaml/StepsToYamlTest.kt | 2 +- .../githubactions/scriptgenerator/Actions.kt | 2 +- .../src/test/kotlin/generated/DockerImage.kt | 2 +- .../kotlin/generated/UpdateGradleWrapper.kt | 2 +- 122 files changed, 174 insertions(+), 141 deletions(-) rename library/src/main/kotlin/it/krzeminski/githubactions/{ => domain}/actions/Action.kt (86%) rename library/src/main/kotlin/it/krzeminski/githubactions/{ => domain}/actions/ActionWithOutputs.kt (86%) rename library/src/main/kotlin/it/krzeminski/githubactions/{ => domain}/actions/CustomAction.kt (94%) diff --git a/automation/wrapper-generator/src/main/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/Generation.kt b/automation/wrapper-generator/src/main/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/Generation.kt index 9bd122e322..c0ce6c247f 100644 --- a/automation/wrapper-generator/src/main/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/Generation.kt +++ b/automation/wrapper-generator/src/main/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/Generation.kt @@ -277,9 +277,9 @@ private fun TypeSpec.Builder.addMaybeDeprecated(coords: ActionCoords): TypeSpec. private fun TypeSpec.Builder.inheritsFromAction(coords: ActionCoords, metadata: Metadata): TypeSpec.Builder { val superclass = if (metadata.outputs.isEmpty()) { - ClassName("it.krzeminski.githubactions.actions", "Action") + ClassName("it.krzeminski.githubactions.domain.actions", "Action") } else { - ClassName("it.krzeminski.githubactions.actions", "ActionWithOutputs") + ClassName("it.krzeminski.githubactions.domain.actions", "ActionWithOutputs") .plusParameter( ClassName( "it.krzeminski.githubactions.actions.${coords.owner.toKotlinPackageName()}", diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithDeprecatedInputAndNameClashV2.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithDeprecatedInputAndNameClashV2.kt index 52a2ac8b38..ea9d032d6f 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithDeprecatedInputAndNameClashV2.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithDeprecatedInputAndNameClashV2.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.johnsmith -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithInputsSharingTypeV3.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithInputsSharingTypeV3.kt index 9f8cd53681..7845615218 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithInputsSharingTypeV3.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithInputsSharingTypeV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.johnsmith -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Int import kotlin.String diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithNoInputsV3.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithNoInputsV3.kt index 51d83a3646..1b0b52d05a 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithNoInputsV3.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithNoInputsV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.johnsmith -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithNonStringInputsV3.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithNonStringInputsV3.kt index 6febc77a6e..4b878fa9d9 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithNonStringInputsV3.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithNonStringInputsV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.johnsmith -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Float diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithOutputsV3.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithOutputsV3.kt index a55ae69224..875f826aaf 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithOutputsV3.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithOutputsV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.johnsmith -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithSomeOptionalInputsV3.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithSomeOptionalInputsV3.kt index 519235f552..7b3e435180 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithSomeOptionalInputsV3.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithSomeOptionalInputsV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.johnsmith -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/DeprecatedActionV2.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/DeprecatedActionV2.kt index b2422427d9..fb4c195369 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/DeprecatedActionV2.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/DeprecatedActionV2.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.johnsmith -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/SimpleActionWithListsV3.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/SimpleActionWithListsV3.kt index 1437978d99..0bf4051e09 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/SimpleActionWithListsV3.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/SimpleActionWithListsV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.johnsmith -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Int import kotlin.String diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/SimpleActionWithRequiredStringInputsV3.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/SimpleActionWithRequiredStringInputsV3.kt index 4c1507dff6..f530a3708c 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/SimpleActionWithRequiredStringInputsV3.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/SimpleActionWithRequiredStringInputsV3.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.johnsmith -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String diff --git a/library/api/library.api b/library/api/library.api index 02191894df..5d0d85da22 100644 --- a/library/api/library.api +++ b/library/api/library.api @@ -61,9 +61,9 @@ public final class it/krzeminski/githubactions/domain/Concurrency$Companion { } public class it/krzeminski/githubactions/domain/ExternalActionStep : it/krzeminski/githubactions/domain/Step { - public fun (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;)V - public synthetic fun (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun getAction ()Lit/krzeminski/githubactions/actions/Action; + public fun (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;)V + public synthetic fun (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun getAction ()Lit/krzeminski/githubactions/domain/actions/Action; public fun getCondition ()Ljava/lang/String; public fun getContinueOnError ()Ljava/lang/Boolean; public fun getEnv ()Ljava/util/LinkedHashMap; @@ -74,22 +74,22 @@ public class it/krzeminski/githubactions/domain/ExternalActionStep : it/krzemins } public final class it/krzeminski/githubactions/domain/ExternalActionStepWithOutputs : it/krzeminski/githubactions/domain/ExternalActionStep, it/krzeminski/githubactions/domain/WithOutputs { - public fun (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/lang/Object;Ljava/util/Map;)V - public synthetic fun (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/lang/Object;Ljava/util/Map;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/lang/Object;Ljava/util/Map;)V + public synthetic fun (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/lang/Object;Ljava/util/Map;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ljava/lang/String; public final fun component2 ()Ljava/lang/String; - public final fun component3 ()Lit/krzeminski/githubactions/actions/ActionWithOutputs; + public final fun component3 ()Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs; public final fun component4 ()Ljava/util/LinkedHashMap; public final fun component5 ()Ljava/lang/String; public final fun component6 ()Ljava/lang/Boolean; public final fun component7 ()Ljava/lang/Integer; public final fun component8 ()Ljava/lang/Object; public final fun component9 ()Ljava/util/Map; - public final fun copy (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/lang/Object;Ljava/util/Map;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; - public static synthetic fun copy$default (Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs;Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/lang/Object;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; + public final fun copy (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/lang/Object;Ljava/util/Map;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; + public static synthetic fun copy$default (Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs;Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/lang/Object;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; public fun equals (Ljava/lang/Object;)Z - public synthetic fun getAction ()Lit/krzeminski/githubactions/actions/Action; - public fun getAction ()Lit/krzeminski/githubactions/actions/ActionWithOutputs; + public synthetic fun getAction ()Lit/krzeminski/githubactions/domain/actions/Action; + public fun getAction ()Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs; public fun getCondition ()Ljava/lang/String; public fun getContinueOnError ()Ljava/lang/Boolean; public fun getEnv ()Ljava/util/LinkedHashMap; @@ -289,6 +289,38 @@ public final class it/krzeminski/githubactions/domain/Workflow : it/krzeminski/g public fun toString ()Ljava/lang/String; } +public abstract class it/krzeminski/githubactions/domain/actions/Action { + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun getActionName ()Ljava/lang/String; + public fun getActionOwner ()Ljava/lang/String; + public fun getActionVersion ()Ljava/lang/String; + public abstract fun toYamlArguments ()Ljava/util/LinkedHashMap; +} + +public abstract class it/krzeminski/githubactions/domain/actions/ActionWithOutputs : it/krzeminski/githubactions/domain/actions/Action { + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public abstract fun buildOutputObject (Ljava/lang/String;)Ljava/lang/Object; + public fun getActionName ()Ljava/lang/String; + public fun getActionOwner ()Ljava/lang/String; + public fun getActionVersion ()Ljava/lang/String; +} + +public final class it/krzeminski/githubactions/domain/actions/CustomAction : it/krzeminski/githubactions/domain/actions/ActionWithOutputs { + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V + public fun buildOutputObject (Ljava/lang/String;)Lit/krzeminski/githubactions/domain/actions/CustomAction$Output; + public synthetic fun buildOutputObject (Ljava/lang/String;)Ljava/lang/Object; + public fun getActionName ()Ljava/lang/String; + public fun getActionOwner ()Ljava/lang/String; + public fun getActionVersion ()Ljava/lang/String; + public final fun getInputs ()Ljava/util/Map; + public fun toYamlArguments ()Ljava/util/LinkedHashMap; +} + +public final class it/krzeminski/githubactions/domain/actions/CustomAction$Output { + public fun (Ljava/lang/String;)V + public final fun get (Ljava/lang/String;)Ljava/lang/String; +} + public final class it/krzeminski/githubactions/domain/triggers/BranchProtectionRule : it/krzeminski/githubactions/domain/triggers/Trigger { public static final field Companion Lit/krzeminski/githubactions/domain/triggers/BranchProtectionRule$Companion; public fun ()V @@ -1516,14 +1548,14 @@ public final class it/krzeminski/githubactions/dsl/JobBuilder : it/krzeminski/gi public final fun run (Ljava/lang/String;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Lit/krzeminski/githubactions/domain/Shell;Ljava/lang/String;Ljava/util/Map;)Lit/krzeminski/githubactions/domain/CommandStep; public static synthetic fun run$default (Lit/krzeminski/githubactions/dsl/JobBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Lit/krzeminski/githubactions/domain/Shell;Ljava/lang/String;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/CommandStep; public static synthetic fun run$default (Lit/krzeminski/githubactions/dsl/JobBuilder;Ljava/lang/String;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Lit/krzeminski/githubactions/domain/Shell;Ljava/lang/String;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/CommandStep; - public final fun uses (Lit/krzeminski/githubactions/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;)Lit/krzeminski/githubactions/domain/ExternalActionStep; - public final fun uses (Lit/krzeminski/githubactions/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; - public final fun uses (Ljava/lang/String;Lit/krzeminski/githubactions/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;)Lit/krzeminski/githubactions/domain/ExternalActionStep; - public final fun uses (Ljava/lang/String;Lit/krzeminski/githubactions/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; - public static synthetic fun uses$default (Lit/krzeminski/githubactions/dsl/JobBuilder;Lit/krzeminski/githubactions/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/ExternalActionStep; - public static synthetic fun uses$default (Lit/krzeminski/githubactions/dsl/JobBuilder;Lit/krzeminski/githubactions/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; - public static synthetic fun uses$default (Lit/krzeminski/githubactions/dsl/JobBuilder;Ljava/lang/String;Lit/krzeminski/githubactions/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/ExternalActionStep; - public static synthetic fun uses$default (Lit/krzeminski/githubactions/dsl/JobBuilder;Ljava/lang/String;Lit/krzeminski/githubactions/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; + public final fun uses (Lit/krzeminski/githubactions/domain/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;)Lit/krzeminski/githubactions/domain/ExternalActionStep; + public final fun uses (Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; + public final fun uses (Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;)Lit/krzeminski/githubactions/domain/ExternalActionStep; + public final fun uses (Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; + public static synthetic fun uses$default (Lit/krzeminski/githubactions/dsl/JobBuilder;Lit/krzeminski/githubactions/domain/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/ExternalActionStep; + public static synthetic fun uses$default (Lit/krzeminski/githubactions/dsl/JobBuilder;Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; + public static synthetic fun uses$default (Lit/krzeminski/githubactions/dsl/JobBuilder;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/ExternalActionStep; + public static synthetic fun uses$default (Lit/krzeminski/githubactions/dsl/JobBuilder;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; } public final class it/krzeminski/githubactions/dsl/WorkflowBuilder { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/8398a7/ActionSlackV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/8398a7/ActionSlackV3.kt index 9f0ca63f07..54ab7e27de 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/8398a7/ActionSlackV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/8398a7/ActionSlackV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.`8398a7` -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheRestoreV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheRestoreV3.kt index da025f12fb..f20464d96d 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheRestoreV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheRestoreV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheSaveV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheSaveV3.kt index 66462676e1..506e6628f0 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheSaveV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheSaveV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheV2.kt index 07feb0f55e..5d9e63e2b5 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheV2.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.Int diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheV3.kt index d5ac9fd857..dfba05ac45 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CheckoutV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CheckoutV2.kt index bb5d36e182..088dfc45f3 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CheckoutV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CheckoutV2.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CheckoutV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CheckoutV3.kt index 9d3b20d63a..36b68b3ced 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CheckoutV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CheckoutV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CreateReleaseV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CreateReleaseV1.kt index 9e2830108d..64d90da14c 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CreateReleaseV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CreateReleaseV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/DownloadArtifactV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/DownloadArtifactV2.kt index ca97257906..5c7c7ca848 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/DownloadArtifactV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/DownloadArtifactV2.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/DownloadArtifactV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/DownloadArtifactV3.kt index 6a052a789a..00ae9d1fb8 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/DownloadArtifactV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/DownloadArtifactV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/FirstInteractionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/FirstInteractionV1.kt index 0ebeecfd6e..33e74d2001 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/FirstInteractionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/FirstInteractionV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/GithubScriptV6.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/GithubScriptV6.kt index 119acf0472..3acf2bdee5 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/GithubScriptV6.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/GithubScriptV6.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/LabelerV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/LabelerV4.kt index 54ea08a86e..785ea11cbc 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/LabelerV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/LabelerV4.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupDotnetV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupDotnetV2.kt index eebb939651..cd37347671 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupDotnetV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupDotnetV2.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupDotnetV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupDotnetV3.kt index a82ac9a8b2..da3111f7a7 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupDotnetV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupDotnetV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupGoV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupGoV3.kt index 2bbf732ae6..6961c6c81e 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupGoV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupGoV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupJavaV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupJavaV2.kt index 4b48743126..b51458ba5b 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupJavaV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupJavaV2.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupJavaV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupJavaV3.kt index b1c09446e3..efb0971c6d 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupJavaV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupJavaV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupNodeV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupNodeV2.kt index 2c39457195..cd9e6a63a3 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupNodeV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupNodeV2.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupNodeV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupNodeV3.kt index b8d5d5eef8..f90408b4c8 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupNodeV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupNodeV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV2.kt index 96ec1ca3a6..6008bb3100 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV2.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV3.kt index 01cad7c130..5ece4136c5 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV3.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV4.kt index c7c3b81e19..b98a7078f2 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV4.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV5.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV5.kt index 6bb70c7f0c..6e5b267542 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV5.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV5.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV6.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV6.kt index f0dd67733d..b8733352b1 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV6.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV6.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV7.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV7.kt index 08f5197f4c..73382e8356 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV7.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV7.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Float diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/UploadArtifactV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/UploadArtifactV2.kt index 82cdf8e354..80f004f036 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/UploadArtifactV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/UploadArtifactV2.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.Int diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/UploadArtifactV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/UploadArtifactV3.kt index 1e31e47477..3e11ede174 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/UploadArtifactV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/UploadArtifactV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Int import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/AuditCheckV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/AuditCheckV1.kt index b073c595f0..07c4612565 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/AuditCheckV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/AuditCheckV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actionsrs -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/CargoV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/CargoV1.kt index 976f71bdc0..260d6ea5d1 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/CargoV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/CargoV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actionsrs -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/ClippyCheckV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/ClippyCheckV1.kt index ed5961e12f..5436b1fa05 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/ClippyCheckV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/ClippyCheckV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actionsrs -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/ToolchainV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/ToolchainV1.kt index 8e785f9843..4f64c859c5 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/ToolchainV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/ToolchainV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.actionsrs -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/anmol098/WakaReadmeStatsV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/anmol098/WakaReadmeStatsV4.kt index 66a70534d3..86bf9f7a1a 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/anmol098/WakaReadmeStatsV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/anmol098/WakaReadmeStatsV4.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.anmol098 -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/anothrnick/GithubTagActionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/anothrnick/GithubTagActionV1.kt index ff486162ed..a51a73afc2 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/anothrnick/GithubTagActionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/anothrnick/GithubTagActionV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.anothrnick -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcrLoginV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcrLoginV1.kt index 8c2580e4c8..75222d9521 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcrLoginV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcrLoginV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.awsactions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcsDeployTaskDefinitionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcsDeployTaskDefinitionV1.kt index 0eabc79d7f..d7aa170c2d 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcsDeployTaskDefinitionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcsDeployTaskDefinitionV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.awsactions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcsRenderTaskDefinitionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcsRenderTaskDefinitionV1.kt index 069e08b5a1..d70d8e2d4c 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcsRenderTaskDefinitionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcsRenderTaskDefinitionV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.awsactions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/ConfigureAwsCredentialsV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/ConfigureAwsCredentialsV1.kt index ff0b646d01..e9b3c97ef3 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/ConfigureAwsCredentialsV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/ConfigureAwsCredentialsV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.awsactions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/axelop/GooglejavaformatActionV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/axelop/GooglejavaformatActionV3.kt index e717cbe9b3..4b728cc268 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/axelop/GooglejavaformatActionV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/axelop/GooglejavaformatActionV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.axelop -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/DockerLoginV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/DockerLoginV1.kt index d4d9192a67..4a5cac176e 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/DockerLoginV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/DockerLoginV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.azure -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/LoginV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/LoginV1.kt index 3efa6f8ba1..c2e7fac8c5 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/LoginV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/LoginV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.azure -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/WebappsDeployV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/WebappsDeployV2.kt index 4b86c4a13e..ce1ec2b2fd 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/WebappsDeployV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/WebappsDeployV2.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.azure -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/bahmutov/NpmInstallV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/bahmutov/NpmInstallV1.kt index 8ecf7966e6..f4ffe4f8af 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/bahmutov/NpmInstallV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/bahmutov/NpmInstallV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.bahmutov -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/borales/ActionsYarnV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/borales/ActionsYarnV3.kt index beb2a69595..a8abf41616 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/borales/ActionsYarnV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/borales/ActionsYarnV3.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.borales -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/borales/ActionsYarnV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/borales/ActionsYarnV4.kt index e9f379f41a..0e162fd9c2 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/borales/ActionsYarnV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/borales/ActionsYarnV4.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.borales -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/burrunan/GradleCacheActionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/burrunan/GradleCacheActionV1.kt index 1c0271f7a0..536e6432a2 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/burrunan/GradleCacheActionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/burrunan/GradleCacheActionV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.burrunan -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/BrowserslistUpdateActionV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/BrowserslistUpdateActionV2.kt index 12c8fdc7da..321f00017a 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/BrowserslistUpdateActionV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/BrowserslistUpdateActionV2.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.c2corg -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/TransifexPullRequestActionV5.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/TransifexPullRequestActionV5.kt index fa77cc848e..5f72e9fbef 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/TransifexPullRequestActionV5.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/TransifexPullRequestActionV5.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.c2corg -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV17.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV17.kt index e48d42eece..66e4ea94cb 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV17.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV17.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.cachix -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV18.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV18.kt index 381653f7af..2bcd221deb 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV18.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV18.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.cachix -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV19.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV19.kt index 87d1126864..5d7c14fee9 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV19.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV19.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.cachix -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/codecov/CodecovActionV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/codecov/CodecovActionV3.kt index 3dc94c685f..c6d9105046 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/codecov/CodecovActionV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/codecov/CodecovActionV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.codecov -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV2.kt index 3defb9ef28..39bed3f7b0 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV2.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.docker -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV3.kt index e05846fda9..e637d88d46 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV3.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.docker -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV4.kt index c77b9e7c78..f5f410843e 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV4.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.docker -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/LoginActionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/LoginActionV1.kt index 2c12ec3752..f59e1ae181 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/LoginActionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/LoginActionV1.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.docker -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/LoginActionV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/LoginActionV2.kt index 3f0ac2283b..ed4a7d027f 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/LoginActionV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/LoginActionV2.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.docker -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/SetupBuildxActionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/SetupBuildxActionV1.kt index bc89d62080..de6191a03a 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/SetupBuildxActionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/SetupBuildxActionV1.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.docker -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/SetupBuildxActionV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/SetupBuildxActionV2.kt index 435e65ad3e..05f17c2700 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/SetupBuildxActionV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/SetupBuildxActionV2.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.docker -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/elgohr/PublishDockerGithubActionV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/elgohr/PublishDockerGithubActionV4.kt index 716c292ebc..a8cf6f78e1 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/elgohr/PublishDockerGithubActionV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/elgohr/PublishDockerGithubActionV4.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.elgohr -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/elgohr/PublishDockerGithubActionV5.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/elgohr/PublishDockerGithubActionV5.kt index d1af8ae1b6..e7becc0fbb 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/elgohr/PublishDockerGithubActionV5.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/elgohr/PublishDockerGithubActionV5.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.elgohr -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/endbug/AddAndCommitV8.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/endbug/AddAndCommitV8.kt index 3692702154..f4a99b53bf 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/endbug/AddAndCommitV8.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/endbug/AddAndCommitV8.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.endbug -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/endbug/AddAndCommitV9.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/endbug/AddAndCommitV9.kt index 72108e2c41..55f233d493 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/endbug/AddAndCommitV9.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/endbug/AddAndCommitV9.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.endbug -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/ericcornelissen/GitTagAnnotationActionV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/ericcornelissen/GitTagAnnotationActionV2.kt index 2717cbc207..36b43b98bf 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/ericcornelissen/GitTagAnnotationActionV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/ericcornelissen/GitTagAnnotationActionV2.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.ericcornelissen -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gautamkrishnar/BlogPostWorkflowV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gautamkrishnar/BlogPostWorkflowV1.kt index 704e0011b9..a3bd6d3dd1 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gautamkrishnar/BlogPostWorkflowV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gautamkrishnar/BlogPostWorkflowV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.gautamkrishnar -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlecloudplatform/GithubActionsV0.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlecloudplatform/GithubActionsV0.kt index 13ad7d6a83..da9d1b6c0b 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlecloudplatform/GithubActionsV0.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlecloudplatform/GithubActionsV0.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.googlecloudplatform -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlecloudplatform/GithubActionsV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlecloudplatform/GithubActionsV1.kt index e46d0a1020..700dcc7341 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlecloudplatform/GithubActionsV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlecloudplatform/GithubActionsV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.googlecloudplatform -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/AuthV0.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/AuthV0.kt index 45a95355bf..876c79e08a 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/AuthV0.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/AuthV0.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.googlegithubactions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/AuthV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/AuthV1.kt index f16d9afbcb..5ad2021fb7 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/AuthV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/AuthV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.googlegithubactions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/SetupGcloudV0.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/SetupGcloudV0.kt index 2327595176..4613aab398 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/SetupGcloudV0.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/SetupGcloudV0.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.googlegithubactions -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/SetupGcloudV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/SetupGcloudV1.kt index 05f2383995..a2177c8d79 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/SetupGcloudV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/SetupGcloudV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.googlegithubactions -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradle/GradleBuildActionV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradle/GradleBuildActionV2.kt index 5251468b85..5baa191b33 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradle/GradleBuildActionV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradle/GradleBuildActionV2.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.gradle -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradle/WrapperValidationActionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradle/WrapperValidationActionV1.kt index 305c3a3aaf..db65b1e6ae 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradle/WrapperValidationActionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradle/WrapperValidationActionV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.gradle -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradleupdate/UpdateGradleWrapperActionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradleupdate/UpdateGradleWrapperActionV1.kt index 4d3932fd71..fb8147df84 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradleupdate/UpdateGradleWrapperActionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradleupdate/UpdateGradleWrapperActionV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.gradleupdate -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/jamesives/GithubPagesDeployActionV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/jamesives/GithubPagesDeployActionV4.kt index 3b49138d44..fef695a7cf 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/jamesives/GithubPagesDeployActionV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/jamesives/GithubPagesDeployActionV4.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.jamesives -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/jasonetco/CreateAnIssueV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/jasonetco/CreateAnIssueV2.kt index bc9513be4a..f5f4edd65f 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/jasonetco/CreateAnIssueV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/jasonetco/CreateAnIssueV2.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.jasonetco -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/juliaactions/SetupJuliaV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/juliaactions/SetupJuliaV1.kt index 15b526b781..55744f59c4 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/juliaactions/SetupJuliaV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/juliaactions/SetupJuliaV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.juliaactions -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV0.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV0.kt index d5a44423d1..f8e590d114 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV0.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV0.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.krzema12 -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV1.kt index 96e4ed7b44..d9b11d9de3 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.krzema12 -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/CheckGradleVersionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/CheckGradleVersionV1.kt index 34c7b42630..7f81d55e72 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/CheckGradleVersionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/CheckGradleVersionV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.madhead -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV0.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV0.kt index 0956600280..e9ad86cbac 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV0.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV0.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.madhead -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV231.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV231.kt index 29ba7c2ac1..f2ae464b6a 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV231.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV231.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.madhead -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV2.kt index acb60a7fd0..1fc911010c 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV2.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.madhead -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV3.kt index 550f309e2c..5f6a40ec7a 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.madhead -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/microsoft/SetupMsbuildV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/microsoft/SetupMsbuildV1.kt index 0b76aacbf2..5d693e9b0e 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/microsoft/SetupMsbuildV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/microsoft/SetupMsbuildV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.microsoft -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/mikas/KoverReportV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/mikas/KoverReportV1.kt index b0c946e680..acc0715e0e 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/mikas/KoverReportV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/mikas/KoverReportV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.mikas -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/nobrayner/DiscordWebhookV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/nobrayner/DiscordWebhookV1.kt index 6b2801d2b3..bd479f234c 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/nobrayner/DiscordWebhookV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/nobrayner/DiscordWebhookV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.nobrayner -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peaceiris/ActionsGhPagesV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peaceiris/ActionsGhPagesV3.kt index 2abb0b6fdd..77ec97e87b 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peaceiris/ActionsGhPagesV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peaceiris/ActionsGhPagesV3.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.peaceiris -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peaceiris/ActionsHugoV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peaceiris/ActionsHugoV2.kt index 40cb8b082c..11810afaff 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peaceiris/ActionsHugoV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peaceiris/ActionsHugoV2.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.peaceiris -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peterevans/CreateIssueFromFileV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peterevans/CreateIssueFromFileV4.kt index 2cfe4875e6..20f53f294a 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peterevans/CreateIssueFromFileV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peterevans/CreateIssueFromFileV4.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.peterevans -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Int import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peterevans/CreatePullRequestV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peterevans/CreatePullRequestV4.kt index cc99fb7a2d..a347007b2b 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peterevans/CreatePullRequestV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peterevans/CreatePullRequestV4.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.peterevans -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reactivecircus/AndroidEmulatorRunnerV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reactivecircus/AndroidEmulatorRunnerV2.kt index 39dc804991..1dc9ac71c5 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reactivecircus/AndroidEmulatorRunnerV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reactivecircus/AndroidEmulatorRunnerV2.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.reactivecircus -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reposync/PullRequestV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reposync/PullRequestV2.kt index 8f12485a25..0445d64a46 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reposync/PullRequestV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reposync/PullRequestV2.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.reposync -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/ruby/SetupRubyV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/ruby/SetupRubyV1.kt index fd31b3f6c9..7b77b8ec85 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/ruby/SetupRubyV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/ruby/SetupRubyV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.ruby -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/softprops/ActionGhReleaseV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/softprops/ActionGhReleaseV1.kt index cf44f31fea..f7351cb218 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/softprops/ActionGhReleaseV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/softprops/ActionGhReleaseV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.softprops -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/stefanzweifel/GitAutoCommitActionV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/stefanzweifel/GitAutoCommitActionV4.kt index 88e4aaf748..d7f9ceee7f 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/stefanzweifel/GitAutoCommitActionV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/stefanzweifel/GitAutoCommitActionV4.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.stefanzweifel -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/subosito/FlutterActionV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/subosito/FlutterActionV2.kt index f033baf021..ed2a3ff12e 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/subosito/FlutterActionV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/subosito/FlutterActionV2.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.subosito -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/supercharge/MongodbGithubActionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/supercharge/MongodbGithubActionV1.kt index 3327ccaaa7..b8c5fd2255 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/supercharge/MongodbGithubActionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/supercharge/MongodbGithubActionV1.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.supercharge -import it.krzeminski.githubactions.actions.Action +import it.krzeminski.githubactions.domain.actions.Action import java.util.LinkedHashMap import kotlin.Int import kotlin.String diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV1.kt index 596cc4c6a7..9251b3db07 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV1.kt @@ -5,7 +5,7 @@ package it.krzeminski.githubactions.actions.vampire -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV2.kt index 5e717f8d23..8364582fd5 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV2.kt @@ -3,7 +3,7 @@ // generator itself. package it.krzeminski.githubactions.actions.vampire -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String diff --git a/library/src/main/kotlin/it/krzeminski/githubactions/domain/Step.kt b/library/src/main/kotlin/it/krzeminski/githubactions/domain/Step.kt index b3e4f3d887..963b1948ac 100644 --- a/library/src/main/kotlin/it/krzeminski/githubactions/domain/Step.kt +++ b/library/src/main/kotlin/it/krzeminski/githubactions/domain/Step.kt @@ -1,7 +1,7 @@ package it.krzeminski.githubactions.domain -import it.krzeminski.githubactions.actions.Action -import it.krzeminski.githubactions.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import it.krzeminski.githubactions.dsl.HasCustomArguments import kotlinx.serialization.Contextual diff --git a/library/src/main/kotlin/it/krzeminski/githubactions/actions/Action.kt b/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/Action.kt similarity index 86% rename from library/src/main/kotlin/it/krzeminski/githubactions/actions/Action.kt rename to library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/Action.kt index 02c2177834..2ce59a06e0 100644 --- a/library/src/main/kotlin/it/krzeminski/githubactions/actions/Action.kt +++ b/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/Action.kt @@ -1,4 +1,4 @@ -package it.krzeminski.githubactions.actions +package it.krzeminski.githubactions.domain.actions public abstract class Action( public open val actionOwner: String, diff --git a/library/src/main/kotlin/it/krzeminski/githubactions/actions/ActionWithOutputs.kt b/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/ActionWithOutputs.kt similarity index 86% rename from library/src/main/kotlin/it/krzeminski/githubactions/actions/ActionWithOutputs.kt rename to library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/ActionWithOutputs.kt index 57bce8f5c8..1fa8162b56 100644 --- a/library/src/main/kotlin/it/krzeminski/githubactions/actions/ActionWithOutputs.kt +++ b/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/ActionWithOutputs.kt @@ -1,4 +1,4 @@ -package it.krzeminski.githubactions.actions +package it.krzeminski.githubactions.domain.actions public abstract class ActionWithOutputs( override val actionOwner: String, diff --git a/library/src/main/kotlin/it/krzeminski/githubactions/actions/CustomAction.kt b/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/CustomAction.kt similarity index 94% rename from library/src/main/kotlin/it/krzeminski/githubactions/actions/CustomAction.kt rename to library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/CustomAction.kt index c33cf2b839..035c4e1aea 100644 --- a/library/src/main/kotlin/it/krzeminski/githubactions/actions/CustomAction.kt +++ b/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/CustomAction.kt @@ -1,4 +1,4 @@ -package it.krzeminski.githubactions.actions +package it.krzeminski.githubactions.domain.actions /** * CustomAction can be used when there is no type-safe wrapper action diff --git a/library/src/main/kotlin/it/krzeminski/githubactions/dsl/JobBuilder.kt b/library/src/main/kotlin/it/krzeminski/githubactions/dsl/JobBuilder.kt index 1ee1c4c968..b44f49a7f0 100644 --- a/library/src/main/kotlin/it/krzeminski/githubactions/dsl/JobBuilder.kt +++ b/library/src/main/kotlin/it/krzeminski/githubactions/dsl/JobBuilder.kt @@ -1,7 +1,5 @@ package it.krzeminski.githubactions.dsl -import it.krzeminski.githubactions.actions.Action -import it.krzeminski.githubactions.actions.ActionWithOutputs import it.krzeminski.githubactions.domain.CommandStep import it.krzeminski.githubactions.domain.Concurrency import it.krzeminski.githubactions.domain.ExternalActionStep @@ -10,6 +8,8 @@ import it.krzeminski.githubactions.domain.Job import it.krzeminski.githubactions.domain.JobOutputs import it.krzeminski.githubactions.domain.RunnerType import it.krzeminski.githubactions.domain.Shell +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import kotlinx.serialization.Contextual @Suppress("LongParameterList") diff --git a/library/src/main/kotlin/it/krzeminski/githubactions/yaml/StepsToYaml.kt b/library/src/main/kotlin/it/krzeminski/githubactions/yaml/StepsToYaml.kt index 91c6f64a36..1ff12868ed 100644 --- a/library/src/main/kotlin/it/krzeminski/githubactions/yaml/StepsToYaml.kt +++ b/library/src/main/kotlin/it/krzeminski/githubactions/yaml/StepsToYaml.kt @@ -1,6 +1,5 @@ package it.krzeminski.githubactions.yaml -import it.krzeminski.githubactions.actions.fullName import it.krzeminski.githubactions.domain.CommandStep import it.krzeminski.githubactions.domain.ExternalActionStep import it.krzeminski.githubactions.domain.Shell @@ -12,6 +11,7 @@ import it.krzeminski.githubactions.domain.Shell.Pwsh import it.krzeminski.githubactions.domain.Shell.Python import it.krzeminski.githubactions.domain.Shell.Sh import it.krzeminski.githubactions.domain.Step +import it.krzeminski.githubactions.domain.actions.fullName internal fun List.stepsToYaml(): List> = this.map { it.toYaml() } diff --git a/library/src/test/kotlin/it/krzeminski/githubactions/actions/CustomActionTest.kt b/library/src/test/kotlin/it/krzeminski/githubactions/actions/CustomActionTest.kt index 478f10c555..570896b44f 100644 --- a/library/src/test/kotlin/it/krzeminski/githubactions/actions/CustomActionTest.kt +++ b/library/src/test/kotlin/it/krzeminski/githubactions/actions/CustomActionTest.kt @@ -2,6 +2,7 @@ package it.krzeminski.githubactions.actions import io.kotest.core.spec.style.FunSpec import io.kotest.matchers.shouldBe +import it.krzeminski.githubactions.domain.actions.CustomAction class CustomActionTest : FunSpec({ diff --git a/library/src/test/kotlin/it/krzeminski/githubactions/yaml/StepsToYamlTest.kt b/library/src/test/kotlin/it/krzeminski/githubactions/yaml/StepsToYamlTest.kt index d698882d44..0125e14ed0 100644 --- a/library/src/test/kotlin/it/krzeminski/githubactions/yaml/StepsToYamlTest.kt +++ b/library/src/test/kotlin/it/krzeminski/githubactions/yaml/StepsToYamlTest.kt @@ -2,13 +2,13 @@ package it.krzeminski.githubactions.yaml import io.kotest.core.spec.style.DescribeSpec import io.kotest.matchers.shouldBe -import it.krzeminski.githubactions.actions.CustomAction import it.krzeminski.githubactions.actions.actions.CheckoutV3 import it.krzeminski.githubactions.actions.actions.CheckoutV3.FetchDepth import it.krzeminski.githubactions.actions.actions.UploadArtifactV3 import it.krzeminski.githubactions.domain.CommandStep import it.krzeminski.githubactions.domain.ExternalActionStep import it.krzeminski.githubactions.domain.Shell +import it.krzeminski.githubactions.domain.actions.CustomAction class StepsToYamlTest : DescribeSpec({ it("renders multiple steps") { diff --git a/script-generator/src/main/kotlin/it/krzeminski/githubactions/scriptgenerator/Actions.kt b/script-generator/src/main/kotlin/it/krzeminski/githubactions/scriptgenerator/Actions.kt index 981d025f05..45553a7795 100644 --- a/script-generator/src/main/kotlin/it/krzeminski/githubactions/scriptgenerator/Actions.kt +++ b/script-generator/src/main/kotlin/it/krzeminski/githubactions/scriptgenerator/Actions.kt @@ -2,10 +2,10 @@ package it.krzeminski.githubactions.scriptgenerator import com.squareup.kotlinpoet.ClassName import com.squareup.kotlinpoet.CodeBlock -import it.krzeminski.githubactions.actions.CustomAction import it.krzeminski.githubactions.actionsmetadata.model.ActionCoords import it.krzeminski.githubactions.actionsmetadata.model.StringTyping import it.krzeminski.githubactions.actionsmetadata.model.Typing +import it.krzeminski.githubactions.domain.actions.CustomAction import it.krzeminski.githubactions.scriptmodel.YamlStep import it.krzeminski.githubactions.wrappergenerator.generation.buildActionClassName import it.krzeminski.githubactions.wrappergenerator.generation.toCamelCase diff --git a/script-generator/src/test/kotlin/generated/DockerImage.kt b/script-generator/src/test/kotlin/generated/DockerImage.kt index f19cc7e1f1..1be92c7a18 100644 --- a/script-generator/src/test/kotlin/generated/DockerImage.kt +++ b/script-generator/src/test/kotlin/generated/DockerImage.kt @@ -1,6 +1,6 @@ package generated -import it.krzeminski.githubactions.actions.CustomAction +import it.krzeminski.githubactions.domain.actions.CustomAction import it.krzeminski.githubactions.actions.actions.CheckoutV3 import it.krzeminski.githubactions.actions.docker.BuildPushActionV4 import it.krzeminski.githubactions.actions.docker.LoginActionV2 diff --git a/script-generator/src/test/kotlin/generated/UpdateGradleWrapper.kt b/script-generator/src/test/kotlin/generated/UpdateGradleWrapper.kt index 8d20568b1c..9a904922c6 100644 --- a/script-generator/src/test/kotlin/generated/UpdateGradleWrapper.kt +++ b/script-generator/src/test/kotlin/generated/UpdateGradleWrapper.kt @@ -1,6 +1,6 @@ package generated -import it.krzeminski.githubactions.actions.CustomAction +import it.krzeminski.githubactions.domain.actions.CustomAction import it.krzeminski.githubactions.actions.actions.CheckoutV3 import it.krzeminski.githubactions.actions.gradleupdate.UpdateGradleWrapperActionV1 import it.krzeminski.githubactions.domain.RunnerType From b118f442226745c6682988095d38e656959a2bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Krzemi=C5=84ski?= <3110813+krzema12@users.noreply.github.com> Date: Tue, 14 Feb 2023 09:48:15 +0100 Subject: [PATCH 12/25] chore(library): set Java version target to 11 (#684) It's needed to synchronize the version with the Kotlin compiler. It's a prerequisite for using Gradle 8 (see #681). Java 11 (and not some newer version) is used because its runtime is available without any extra setup on GitHub Actions, so it makes it easier to use the library. --- .github/workflows/_shared.main.kts | 2 +- .github/workflows/actions-versions.yaml | 2 +- .github/workflows/build.yaml | 4 ++-- .github/workflows/check-if-wrappers-up-to-date.yaml | 4 ++-- .github/workflows/release.yaml | 2 +- .../githubactions/actionsmetadata/ActionsMetadataReading.kt | 3 ++- .../src/main/kotlin/buildsrc/convention/kotlin-jvm.gradle.kts | 2 +- 7 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/_shared.main.kts b/.github/workflows/_shared.main.kts index 131219f56c..65f2440f4f 100755 --- a/.github/workflows/_shared.main.kts +++ b/.github/workflows/_shared.main.kts @@ -10,7 +10,7 @@ fun JobBuilder<*>.setupJava() = uses( name = "Set up JDK", action = SetupJavaV3( - javaVersion = "17", + javaVersion = "11", distribution = SetupJavaV3.Distribution.Zulu, cache = SetupJavaV3.BuildPlatform.Gradle, ) diff --git a/.github/workflows/actions-versions.yaml b/.github/workflows/actions-versions.yaml index 0cc79cd55c..bf1cb5f40c 100644 --- a/.github/workflows/actions-versions.yaml +++ b/.github/workflows/actions-versions.yaml @@ -34,7 +34,7 @@ jobs: name: Set up JDK uses: actions/setup-java@v3 with: - java-version: 17 + java-version: 11 distribution: zulu cache: gradle - id: step-2 diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8881b1727c..ac55c09ec7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -33,7 +33,7 @@ jobs: name: Set up JDK uses: actions/setup-java@v3 with: - java-version: 17 + java-version: 11 distribution: zulu cache: gradle - id: step-2 @@ -52,7 +52,7 @@ jobs: name: Set up JDK uses: actions/setup-java@v3 with: - java-version: 17 + java-version: 11 distribution: zulu cache: gradle - id: step-2 diff --git a/.github/workflows/check-if-wrappers-up-to-date.yaml b/.github/workflows/check-if-wrappers-up-to-date.yaml index b09cd870d3..d6359b03eb 100644 --- a/.github/workflows/check-if-wrappers-up-to-date.yaml +++ b/.github/workflows/check-if-wrappers-up-to-date.yaml @@ -34,7 +34,7 @@ jobs: name: Set up JDK uses: actions/setup-java@v3 with: - java-version: 17 + java-version: 11 distribution: zulu cache: gradle - id: step-2 @@ -56,7 +56,7 @@ jobs: name: Set up JDK uses: actions/setup-java@v3 with: - java-version: 17 + java-version: 11 distribution: zulu cache: gradle - id: step-2 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d14ddab945..638abcba93 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -37,7 +37,7 @@ jobs: name: Set up JDK uses: actions/setup-java@v3 with: - java-version: 17 + java-version: 11 distribution: zulu cache: gradle - id: step-2 diff --git a/automation/typings/src/main/kotlin/it/krzeminski/githubactions/actionsmetadata/ActionsMetadataReading.kt b/automation/typings/src/main/kotlin/it/krzeminski/githubactions/actionsmetadata/ActionsMetadataReading.kt index 9b86da0ad6..3efda85f6a 100644 --- a/automation/typings/src/main/kotlin/it/krzeminski/githubactions/actionsmetadata/ActionsMetadataReading.kt +++ b/automation/typings/src/main/kotlin/it/krzeminski/githubactions/actionsmetadata/ActionsMetadataReading.kt @@ -12,6 +12,7 @@ import java.nio.file.Path import kotlin.io.path.isRegularFile import kotlin.io.path.name import kotlin.io.path.readText +import kotlin.streams.asSequence internal fun readActionsMetadata(): List = readLocalActionTypings() @@ -21,7 +22,7 @@ internal fun readActionsMetadata(): List = private fun readLocalActionTypings(): List { val actionTypingsDirectory = Path.of("actions") - return Files.walk(actionTypingsDirectory) + return Files.walk(actionTypingsDirectory).asSequence() .filter { it.isRegularFile() } .filter { it.name !in setOf("commit-hash.txt") } .map { diff --git a/buildSrc/src/main/kotlin/buildsrc/convention/kotlin-jvm.gradle.kts b/buildSrc/src/main/kotlin/buildsrc/convention/kotlin-jvm.gradle.kts index 4fd13caf80..8b6d11ec5d 100644 --- a/buildSrc/src/main/kotlin/buildsrc/convention/kotlin-jvm.gradle.kts +++ b/buildSrc/src/main/kotlin/buildsrc/convention/kotlin-jvm.gradle.kts @@ -32,7 +32,7 @@ kotlin { } fun JavaToolchainSpec.requiredJdkVersion() { - languageVersion.set(JavaLanguageVersion.of(17)) + languageVersion.set(JavaLanguageVersion.of(11)) } tasks.withType { From c04c208000a78e3ede174dd162180487c4a686e6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 14 Feb 2023 10:40:01 +0100 Subject: [PATCH 13/25] chore(deps): update dependency gradle to v8 (#681) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Piotr Krzeminski --- .../main/kotlin/buildsrc/tasks/AwaitMavenCentralDeployTask.kt | 2 +- gradle/wrapper/gradle-wrapper.properties | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/buildSrc/src/main/kotlin/buildsrc/tasks/AwaitMavenCentralDeployTask.kt b/buildSrc/src/main/kotlin/buildsrc/tasks/AwaitMavenCentralDeployTask.kt index 694003b14e..3fe2aac1e5 100644 --- a/buildSrc/src/main/kotlin/buildsrc/tasks/AwaitMavenCentralDeployTask.kt +++ b/buildSrc/src/main/kotlin/buildsrc/tasks/AwaitMavenCentralDeployTask.kt @@ -4,7 +4,6 @@ import java.net.URI import java.net.http.HttpClient import java.net.http.HttpRequest import java.net.http.HttpResponse -import kotlin.time.minutes import kotlinx.coroutines.delay import kotlinx.coroutines.runBlocking import org.gradle.api.DefaultTask @@ -12,6 +11,7 @@ import org.gradle.api.provider.Property import org.gradle.api.publish.plugins.PublishingPlugin import org.gradle.api.tasks.Input import org.gradle.api.tasks.TaskAction +import kotlin.time.Duration.Companion.minutes abstract class AwaitMavenCentralDeployTask : DefaultTask() { diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index adb6acbd81..c9b0f7a0a4 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,7 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionSha256Sum=7ba68c54029790ab444b39d7e293d3236b2632631fb5f2e012bb28b4ff669e4b -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip +distributionSha256Sum=4159b938ec734a8388ce03f52aa8f3c7ed0d31f5438622545de4f83a89b79788 +distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists From a5b6242b65bae0199f59ebe24f61a4cecd504b82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Wed, 15 Feb 2023 22:24:28 +0100 Subject: [PATCH 14/25] feat(library)!: add custom outputs for all actions (#683) This change also simplifies the library so that external actions (used with `uses:`) are modeled by a single domain object, not two depending if they have outputs or not. --- .../wrappergenerator/generation/Generation.kt | 44 +++++-------- ...ActionWithDeprecatedInputAndNameClashV2.kt | 6 +- .../ActionWithInputsSharingTypeV3.kt | 6 +- .../ActionWithNoInputsV3.kt | 5 +- .../ActionWithNonStringInputsV3.kt | 5 +- .../ActionWithOutputsV3.kt | 13 ++-- .../ActionWithSomeOptionalInputsV3.kt | 6 +- .../DeprecatedActionV2.kt | 5 +- .../SimpleActionWithListsV3.kt | 5 +- .../SimpleActionWithRequiredStringInputsV3.kt | 6 +- library/api/library.api | 61 ++++--------------- .../actions/8398a7/ActionSlackV3.kt | 5 +- .../actions/actions/CacheRestoreV3.kt | 11 ++-- .../actions/actions/CacheSaveV3.kt | 5 +- .../githubactions/actions/actions/CacheV2.kt | 11 ++-- .../githubactions/actions/actions/CacheV3.kt | 11 ++-- .../actions/actions/CheckoutV2.kt | 5 +- .../actions/actions/CheckoutV3.kt | 5 +- .../actions/actions/CreateReleaseV1.kt | 12 ++-- .../actions/actions/DownloadArtifactV2.kt | 5 +- .../actions/actions/DownloadArtifactV3.kt | 5 +- .../actions/actions/FirstInteractionV1.kt | 5 +- .../actions/actions/GithubScriptV6.kt | 11 ++-- .../actions/actions/LabelerV4.kt | 5 +- .../actions/actions/SetupDotnetV2.kt | 5 +- .../actions/actions/SetupDotnetV3.kt | 11 ++-- .../actions/actions/SetupGoV3.kt | 11 ++-- .../actions/actions/SetupJavaV2.kt | 11 ++-- .../actions/actions/SetupJavaV3.kt | 11 ++-- .../actions/actions/SetupNodeV2.kt | 11 ++-- .../actions/actions/SetupNodeV3.kt | 11 ++-- .../actions/actions/SetupPythonV2.kt | 11 ++-- .../actions/actions/SetupPythonV3.kt | 11 ++-- .../actions/actions/SetupPythonV4.kt | 11 ++-- .../githubactions/actions/actions/StaleV5.kt | 11 ++-- .../githubactions/actions/actions/StaleV6.kt | 11 ++-- .../githubactions/actions/actions/StaleV7.kt | 11 ++-- .../actions/actions/UploadArtifactV2.kt | 5 +- .../actions/actions/UploadArtifactV3.kt | 5 +- .../actions/actionsrs/AuditCheckV1.kt | 5 +- .../actions/actionsrs/CargoV1.kt | 5 +- .../actions/actionsrs/ClippyCheckV1.kt | 5 +- .../actions/actionsrs/ToolchainV1.kt | 11 ++-- .../actions/anmol098/WakaReadmeStatsV4.kt | 5 +- .../actions/anothrnick/GithubTagActionV1.kt | 12 ++-- .../actions/awsactions/AmazonEcrLoginV1.kt | 12 ++-- .../AmazonEcsDeployTaskDefinitionV1.kt | 11 ++-- .../AmazonEcsRenderTaskDefinitionV1.kt | 11 ++-- .../awsactions/ConfigureAwsCredentialsV1.kt | 11 ++-- .../axelop/GooglejavaformatActionV3.kt | 5 +- .../actions/azure/DockerLoginV1.kt | 5 +- .../githubactions/actions/azure/LoginV1.kt | 5 +- .../actions/azure/WebappsDeployV2.kt | 11 ++-- .../actions/bahmutov/NpmInstallV1.kt | 5 +- .../actions/borales/ActionsYarnV3.kt | 5 +- .../actions/borales/ActionsYarnV4.kt | 5 +- .../actions/burrunan/GradleCacheActionV1.kt | 12 ++-- .../c2corg/BrowserslistUpdateActionV2.kt | 11 ++-- .../c2corg/TransifexPullRequestActionV5.kt | 5 +- .../actions/cachix/InstallNixActionV17.kt | 5 +- .../actions/cachix/InstallNixActionV18.kt | 5 +- .../actions/cachix/InstallNixActionV19.kt | 5 +- .../actions/codecov/CodecovActionV3.kt | 5 +- .../actions/docker/BuildPushActionV2.kt | 12 ++-- .../actions/docker/BuildPushActionV3.kt | 12 ++-- .../actions/docker/BuildPushActionV4.kt | 12 ++-- .../actions/docker/LoginActionV1.kt | 5 +- .../actions/docker/LoginActionV2.kt | 5 +- .../actions/docker/SetupBuildxActionV1.kt | 12 ++-- .../actions/docker/SetupBuildxActionV2.kt | 12 ++-- .../elgohr/PublishDockerGithubActionV4.kt | 11 ++-- .../elgohr/PublishDockerGithubActionV5.kt | 11 ++-- .../actions/endbug/AddAndCommitV8.kt | 11 ++-- .../actions/endbug/AddAndCommitV9.kt | 11 ++-- .../GitTagAnnotationActionV2.kt | 13 ++-- .../gautamkrishnar/BlogPostWorkflowV1.kt | 13 ++-- .../googlecloudplatform/GithubActionsV0.kt | 5 +- .../googlecloudplatform/GithubActionsV1.kt | 5 +- .../actions/googlegithubactions/AuthV0.kt | 11 ++-- .../actions/googlegithubactions/AuthV1.kt | 11 ++-- .../googlegithubactions/SetupGcloudV0.kt | 5 +- .../googlegithubactions/SetupGcloudV1.kt | 5 +- .../actions/gradle/GradleBuildActionV2.kt | 12 ++-- .../gradle/WrapperValidationActionV1.kt | 5 +- .../UpdateGradleWrapperActionV1.kt | 6 +- .../jamesives/GithubPagesDeployActionV4.kt | 11 ++-- .../actions/jasonetco/CreateAnIssueV2.kt | 12 ++-- .../actions/juliaactions/SetupJuliaV1.kt | 12 ++-- .../actions/krzema12/GithubActionsTypingV0.kt | 5 +- .../actions/krzema12/GithubActionsTypingV1.kt | 5 +- .../actions/madhead/CheckGradleVersionV1.kt | 13 ++-- .../madhead/IntellijHttpClientActionV0.kt | 5 +- .../madhead/IntellijHttpClientActionV231.kt | 5 +- .../actions/madhead/SemverUtilsV2.kt | 11 ++-- .../actions/madhead/SemverUtilsV3.kt | 11 ++-- .../actions/microsoft/SetupMsbuildV1.kt | 12 ++-- .../actions/mikas/KoverReportV1.kt | 11 ++-- .../actions/nobrayner/DiscordWebhookV1.kt | 5 +- .../actions/peaceiris/ActionsGhPagesV3.kt | 5 +- .../actions/peaceiris/ActionsHugoV2.kt | 5 +- .../peterevans/CreateIssueFromFileV4.kt | 13 ++-- .../actions/peterevans/CreatePullRequestV4.kt | 13 ++-- .../reactivecircus/AndroidEmulatorRunnerV2.kt | 5 +- .../actions/reposync/PullRequestV2.kt | 11 ++-- .../githubactions/actions/ruby/SetupRubyV1.kt | 11 ++-- .../actions/softprops/ActionGhReleaseV1.kt | 12 ++-- .../stefanzweifel/GitAutoCommitActionV4.kt | 13 ++-- .../actions/subosito/FlutterActionV2.kt | 12 ++-- .../supercharge/MongodbGithubActionV1.kt | 5 +- .../actions/vampire/SetupWslV1.kt | 11 ++-- .../actions/vampire/SetupWslV2.kt | 11 ++-- .../krzeminski/githubactions/domain/Step.kt | 32 ++-------- .../githubactions/domain/actions/Action.kt | 11 +++- .../domain/actions/ActionWithOutputs.kt | 13 ---- .../domain/actions/CustomAction.kt | 12 ++-- .../githubactions/dsl/JobBuilder.kt | 58 +++--------------- .../githubactions/yaml/StepsToYaml.kt | 4 +- .../githubactions/yaml/StepsToYamlTest.kt | 8 +++ 118 files changed, 568 insertions(+), 602 deletions(-) delete mode 100644 library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/ActionWithOutputs.kt diff --git a/automation/wrapper-generator/src/main/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/Generation.kt b/automation/wrapper-generator/src/main/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/Generation.kt index c0ce6c247f..e3cc601c75 100644 --- a/automation/wrapper-generator/src/main/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/Generation.kt +++ b/automation/wrapper-generator/src/main/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/Generation.kt @@ -151,6 +151,8 @@ private fun TypeSpec.Builder.properties(metadata: Metadata, coords: ActionCoords return this } +private val OutputsBase = ClassName("it.krzeminski.githubactions.domain.actions", "Action.Outputs") + private fun TypeSpec.Builder.addOutputClassIfNecessary(metadata: Metadata): TypeSpec.Builder { if (metadata.outputs.isEmpty()) { return this @@ -158,10 +160,6 @@ private fun TypeSpec.Builder.addOutputClassIfNecessary(metadata: Metadata): Type val stepIdConstructorParameter = ParameterSpec.builder("stepId", String::class) .build() - val stepIdProperty = PropertySpec.builder("stepId", String::class) - .initializer("stepId") - .addModifiers(KModifier.PRIVATE) - .build() val propertiesFromOutputs = metadata.outputs.map { (key, value) -> PropertySpec.builder(key.toCamelCase(), String::class) .initializer("\"steps.\$stepId.outputs.$key\"") @@ -175,19 +173,9 @@ private fun TypeSpec.Builder.addOutputClassIfNecessary(metadata: Metadata): Type .addParameter(stepIdConstructorParameter) .build(), ) - .addProperties(listOf(stepIdProperty) + propertiesFromOutputs) - .addFunction( - FunSpec.builder("get") - .addModifiers(KModifier.OPERATOR) - .returns(String::class) - .addParameter("outputName", String::class) - .addCode( - CodeBlock.Builder().apply { - add("return \"steps.\$stepId.outputs.\$outputName\"") - }.build(), - ) - .build(), - ) + .superclass(OutputsBase) + .addSuperclassConstructorParameter("stepId") + .addProperties(propertiesFromOutputs) .build(), ) @@ -195,13 +183,9 @@ private fun TypeSpec.Builder.addOutputClassIfNecessary(metadata: Metadata): Type } private fun TypeSpec.Builder.addBuildOutputObjectFunctionIfNecessary(metadata: Metadata): TypeSpec.Builder { - if (metadata.outputs.isEmpty()) { - return this - } - addFunction( FunSpec.builder("buildOutputObject") - .returns(ClassName("", "Outputs")) + .returns(if (metadata.outputs.isEmpty()) OutputsBase else ClassName("", "Outputs")) .addModifiers(KModifier.OVERRIDE) .addParameter("stepId", String::class) .addCode(CodeBlock.of("return Outputs(stepId)")) @@ -276,17 +260,17 @@ private fun TypeSpec.Builder.addMaybeDeprecated(coords: ActionCoords): TypeSpec. } private fun TypeSpec.Builder.inheritsFromAction(coords: ActionCoords, metadata: Metadata): TypeSpec.Builder { - val superclass = if (metadata.outputs.isEmpty()) { - ClassName("it.krzeminski.githubactions.domain.actions", "Action") - } else { - ClassName("it.krzeminski.githubactions.domain.actions", "ActionWithOutputs") - .plusParameter( + val superclass = ClassName("it.krzeminski.githubactions.domain.actions", "Action") + .plusParameter( + if (metadata.outputs.isEmpty()) { + OutputsBase + } else { ClassName( "it.krzeminski.githubactions.actions.${coords.owner.toKotlinPackageName()}", "${coords.buildActionClassName()}.Outputs", - ), - ) - } + ) + }, + ) return this .superclass(superclass) .addSuperclassConstructorParameter("%S", coords.owner) diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithDeprecatedInputAndNameClashV2.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithDeprecatedInputAndNameClashV2.kt index ea9d032d6f..71974c0b4e 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithDeprecatedInputAndNameClashV2.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithDeprecatedInputAndNameClashV2.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.johnsmith import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -32,7 +33,8 @@ public data class ActionWithDeprecatedInputAndNameClashV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("john-smith", "action-with-deprecated-input-and-name-clash", _customVersion ?: "v2") { +) : Action("john-smith", "action-with-deprecated-input-and-name-clash", + _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -40,4 +42,6 @@ public data class ActionWithDeprecatedInputAndNameClashV2( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithInputsSharingTypeV3.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithInputsSharingTypeV3.kt index 7845615218..820f9734f1 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithInputsSharingTypeV3.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithInputsSharingTypeV3.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.johnsmith import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Int import kotlin.String @@ -32,7 +33,8 @@ public data class ActionWithInputsSharingTypeV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("john-smith", "action-with-inputs-sharing-type", _customVersion ?: "v3") { +) : Action("john-smith", "action-with-inputs-sharing-type", _customVersion ?: "v3") + { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -43,6 +45,8 @@ public data class ActionWithInputsSharingTypeV3( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class Foo( public val integerValue: Int, ) { diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithNoInputsV3.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithNoInputsV3.kt index 1b0b52d05a..75775cc951 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithNoInputsV3.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithNoInputsV3.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.johnsmith import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -26,8 +27,10 @@ public data class ActionWithNoInputsV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("john-smith", "action-with-no-inputs", _customVersion ?: "v3") { +) : Action("john-smith", "action-with-no-inputs", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = LinkedHashMap(_customInputs) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithNonStringInputsV3.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithNonStringInputsV3.kt index 4b878fa9d9..0e3ccee641 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithNonStringInputsV3.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithNonStringInputsV3.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.johnsmith import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Float @@ -68,7 +69,7 @@ public data class ActionWithNonStringInputsV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("john-smith", "action-with-non-string-inputs", _customVersion ?: "v3") { +) : Action("john-smith", "action-with-non-string-inputs", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -85,6 +86,8 @@ public data class ActionWithNonStringInputsV3( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class Bin( public val stringValue: String, ) { diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithOutputsV3.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithOutputsV3.kt index 875f826aaf..c5eb9064ba 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithOutputsV3.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithOutputsV3.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.johnsmith -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -32,8 +33,8 @@ public data class ActionWithOutputsV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("john-smith", "action-with-outputs", - _customVersion ?: "v3") { +) : Action("john-smith", "action-with-outputs", _customVersion ?: "v3") + { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -45,8 +46,8 @@ public data class ActionWithOutputsV3( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Cool output! */ @@ -56,7 +57,5 @@ public data class ActionWithOutputsV3( * Another output... */ public val looWoz: String = "steps.$stepId.outputs.loo-woz" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithSomeOptionalInputsV3.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithSomeOptionalInputsV3.kt index 7b3e435180..866d5d2234 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithSomeOptionalInputsV3.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/ActionWithSomeOptionalInputsV3.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.johnsmith import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -48,7 +49,8 @@ public data class ActionWithSomeOptionalInputsV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("john-smith", "action-with-some-optional-inputs", _customVersion ?: "v3") { +) : Action("john-smith", "action-with-some-optional-inputs", _customVersion ?: "v3") + { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -60,4 +62,6 @@ public data class ActionWithSomeOptionalInputsV3( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/DeprecatedActionV2.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/DeprecatedActionV2.kt index fb4c195369..4641baf7cc 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/DeprecatedActionV2.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/DeprecatedActionV2.kt @@ -6,6 +6,7 @@ package it.krzeminski.githubactions.actions.johnsmith import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String @@ -33,8 +34,10 @@ public data class DeprecatedActionV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("john-smith", "deprecated-action", _customVersion ?: "v2") { +) : Action("john-smith", "deprecated-action", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = LinkedHashMap(_customInputs) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/SimpleActionWithListsV3.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/SimpleActionWithListsV3.kt index 0bf4051e09..b312663bd0 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/SimpleActionWithListsV3.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/SimpleActionWithListsV3.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.johnsmith import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Int import kotlin.String @@ -46,7 +47,7 @@ public data class SimpleActionWithListsV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("john-smith", "simple-action-with-lists", _customVersion ?: "v3") { +) : Action("john-smith", "simple-action-with-lists", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -59,6 +60,8 @@ public data class SimpleActionWithListsV3( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class MyEnum( public val stringValue: String, ) { diff --git a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/SimpleActionWithRequiredStringInputsV3.kt b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/SimpleActionWithRequiredStringInputsV3.kt index f530a3708c..074870e10c 100644 --- a/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/SimpleActionWithRequiredStringInputsV3.kt +++ b/automation/wrapper-generator/src/test/kotlin/it/krzeminski/githubactions/wrappergenerator/generation/wrappersfromunittests/SimpleActionWithRequiredStringInputsV3.kt @@ -6,6 +6,7 @@ package it.krzeminski.githubactions.actions.johnsmith import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String @@ -42,7 +43,8 @@ public data class SimpleActionWithRequiredStringInputsV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("john-smith", "simple-action-with-required-string-inputs", _customVersion ?: "v3") { +) : Action("john-smith", "simple-action-with-required-string-inputs", _customVersion + ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -51,4 +53,6 @@ public data class SimpleActionWithRequiredStringInputsV3( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/api/library.api b/library/api/library.api index 5d0d85da22..beaf599136 100644 --- a/library/api/library.api +++ b/library/api/library.api @@ -60,48 +60,21 @@ public final class it/krzeminski/githubactions/domain/Concurrency$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } -public class it/krzeminski/githubactions/domain/ExternalActionStep : it/krzeminski/githubactions/domain/Step { - public fun (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;)V - public synthetic fun (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;ILkotlin/jvm/internal/DefaultConstructorMarker;)V +public class it/krzeminski/githubactions/domain/ExternalActionStep : it/krzeminski/githubactions/domain/Step, it/krzeminski/githubactions/domain/WithOutputs { + public fun (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Lit/krzeminski/githubactions/domain/actions/Action$Outputs;Ljava/util/Map;)V + public synthetic fun (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Lit/krzeminski/githubactions/domain/actions/Action$Outputs;Ljava/util/Map;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public fun getAction ()Lit/krzeminski/githubactions/domain/actions/Action; public fun getCondition ()Ljava/lang/String; public fun getContinueOnError ()Ljava/lang/Boolean; public fun getEnv ()Ljava/util/LinkedHashMap; public fun getId ()Ljava/lang/String; public fun getName ()Ljava/lang/String; + public fun getOutputs ()Lit/krzeminski/githubactions/domain/actions/Action$Outputs; + public synthetic fun getOutputs ()Ljava/lang/Object; public fun getTimeoutMinutes ()Ljava/lang/Integer; public fun get_customArguments ()Ljava/util/Map; } -public final class it/krzeminski/githubactions/domain/ExternalActionStepWithOutputs : it/krzeminski/githubactions/domain/ExternalActionStep, it/krzeminski/githubactions/domain/WithOutputs { - public fun (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/lang/Object;Ljava/util/Map;)V - public synthetic fun (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/lang/Object;Ljava/util/Map;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()Ljava/lang/String; - public final fun component3 ()Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs; - public final fun component4 ()Ljava/util/LinkedHashMap; - public final fun component5 ()Ljava/lang/String; - public final fun component6 ()Ljava/lang/Boolean; - public final fun component7 ()Ljava/lang/Integer; - public final fun component8 ()Ljava/lang/Object; - public final fun component9 ()Ljava/util/Map; - public final fun copy (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/lang/Object;Ljava/util/Map;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; - public static synthetic fun copy$default (Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs;Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/lang/Object;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; - public fun equals (Ljava/lang/Object;)Z - public synthetic fun getAction ()Lit/krzeminski/githubactions/domain/actions/Action; - public fun getAction ()Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs; - public fun getCondition ()Ljava/lang/String; - public fun getContinueOnError ()Ljava/lang/Boolean; - public fun getEnv ()Ljava/util/LinkedHashMap; - public fun getId ()Ljava/lang/String; - public fun getName ()Ljava/lang/String; - public fun getOutputs ()Ljava/lang/Object; - public fun getTimeoutMinutes ()Ljava/lang/Integer; - public fun get_customArguments ()Ljava/util/Map; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - public final class it/krzeminski/githubactions/domain/Job : it/krzeminski/githubactions/dsl/HasCustomArguments { public fun (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/domain/RunnerType;Ljava/util/List;Ljava/util/List;Lit/krzeminski/githubactions/domain/JobOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/util/Map;Ljava/lang/Integer;Lit/krzeminski/githubactions/domain/Concurrency;Ljava/util/Map;)V public synthetic fun (Ljava/lang/String;Ljava/lang/String;Lit/krzeminski/githubactions/domain/RunnerType;Ljava/util/List;Ljava/util/List;Lit/krzeminski/githubactions/domain/JobOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/util/Map;Ljava/lang/Integer;Lit/krzeminski/githubactions/domain/Concurrency;Ljava/util/Map;ILkotlin/jvm/internal/DefaultConstructorMarker;)V @@ -291,24 +264,21 @@ public final class it/krzeminski/githubactions/domain/Workflow : it/krzeminski/g public abstract class it/krzeminski/githubactions/domain/actions/Action { public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public abstract fun buildOutputObject (Ljava/lang/String;)Lit/krzeminski/githubactions/domain/actions/Action$Outputs; public fun getActionName ()Ljava/lang/String; public fun getActionOwner ()Ljava/lang/String; public fun getActionVersion ()Ljava/lang/String; public abstract fun toYamlArguments ()Ljava/util/LinkedHashMap; } -public abstract class it/krzeminski/githubactions/domain/actions/ActionWithOutputs : it/krzeminski/githubactions/domain/actions/Action { - public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V - public abstract fun buildOutputObject (Ljava/lang/String;)Ljava/lang/Object; - public fun getActionName ()Ljava/lang/String; - public fun getActionOwner ()Ljava/lang/String; - public fun getActionVersion ()Ljava/lang/String; +public class it/krzeminski/githubactions/domain/actions/Action$Outputs { + public fun (Ljava/lang/String;)V + public final fun get (Ljava/lang/String;)Ljava/lang/String; } -public final class it/krzeminski/githubactions/domain/actions/CustomAction : it/krzeminski/githubactions/domain/actions/ActionWithOutputs { +public final class it/krzeminski/githubactions/domain/actions/CustomAction : it/krzeminski/githubactions/domain/actions/Action { public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V - public fun buildOutputObject (Ljava/lang/String;)Lit/krzeminski/githubactions/domain/actions/CustomAction$Output; - public synthetic fun buildOutputObject (Ljava/lang/String;)Ljava/lang/Object; + public fun buildOutputObject (Ljava/lang/String;)Lit/krzeminski/githubactions/domain/actions/Action$Outputs; public fun getActionName ()Ljava/lang/String; public fun getActionOwner ()Ljava/lang/String; public fun getActionVersion ()Ljava/lang/String; @@ -316,11 +286,6 @@ public final class it/krzeminski/githubactions/domain/actions/CustomAction : it/ public fun toYamlArguments ()Ljava/util/LinkedHashMap; } -public final class it/krzeminski/githubactions/domain/actions/CustomAction$Output { - public fun (Ljava/lang/String;)V - public final fun get (Ljava/lang/String;)Ljava/lang/String; -} - public final class it/krzeminski/githubactions/domain/triggers/BranchProtectionRule : it/krzeminski/githubactions/domain/triggers/Trigger { public static final field Companion Lit/krzeminski/githubactions/domain/triggers/BranchProtectionRule$Companion; public fun ()V @@ -1549,13 +1514,9 @@ public final class it/krzeminski/githubactions/dsl/JobBuilder : it/krzeminski/gi public static synthetic fun run$default (Lit/krzeminski/githubactions/dsl/JobBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Lit/krzeminski/githubactions/domain/Shell;Ljava/lang/String;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/CommandStep; public static synthetic fun run$default (Lit/krzeminski/githubactions/dsl/JobBuilder;Ljava/lang/String;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Lit/krzeminski/githubactions/domain/Shell;Ljava/lang/String;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/CommandStep; public final fun uses (Lit/krzeminski/githubactions/domain/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;)Lit/krzeminski/githubactions/domain/ExternalActionStep; - public final fun uses (Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; public final fun uses (Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;)Lit/krzeminski/githubactions/domain/ExternalActionStep; - public final fun uses (Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; public static synthetic fun uses$default (Lit/krzeminski/githubactions/dsl/JobBuilder;Lit/krzeminski/githubactions/domain/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/ExternalActionStep; - public static synthetic fun uses$default (Lit/krzeminski/githubactions/dsl/JobBuilder;Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; public static synthetic fun uses$default (Lit/krzeminski/githubactions/dsl/JobBuilder;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/Action;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/ExternalActionStep; - public static synthetic fun uses$default (Lit/krzeminski/githubactions/dsl/JobBuilder;Ljava/lang/String;Lit/krzeminski/githubactions/domain/actions/ActionWithOutputs;Ljava/util/LinkedHashMap;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/util/Map;ILjava/lang/Object;)Lit/krzeminski/githubactions/domain/ExternalActionStepWithOutputs; } public final class it/krzeminski/githubactions/dsl/WorkflowBuilder { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/8398a7/ActionSlackV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/8398a7/ActionSlackV3.kt index 54ab7e27de..fce6e2d71a 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/8398a7/ActionSlackV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/8398a7/ActionSlackV3.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.`8398a7` import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -92,7 +93,7 @@ public data class ActionSlackV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("8398a7", "action-slack", _customVersion ?: "v3") { +) : Action("8398a7", "action-slack", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -114,6 +115,8 @@ public data class ActionSlackV3( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class Status( public val stringValue: String, ) { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheRestoreV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheRestoreV3.kt index f20464d96d..adffbb3d58 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheRestoreV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheRestoreV3.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -52,7 +53,7 @@ public data class CacheRestoreV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "cache/restore", _customVersion ?: "v3") { +) : Action("actions", "cache/restore", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -68,8 +69,8 @@ public data class CacheRestoreV3( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * A boolean value to indicate an exact match was found for the primary key */ @@ -85,7 +86,5 @@ public data class CacheRestoreV3( * partial/complete match of one of the restore keys */ public val cacheMatchedKey: String = "steps.$stepId.outputs.cache-matched-key" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheSaveV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheSaveV3.kt index 506e6628f0..3745405036 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheSaveV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheSaveV3.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.actions import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int @@ -48,7 +49,7 @@ public data class CacheSaveV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("actions", "cache/save", _customVersion ?: "v3") { +) : Action("actions", "cache/save", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -59,4 +60,6 @@ public data class CacheSaveV3( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheV2.kt index 5d9e63e2b5..537d3036a1 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheV2.kt @@ -5,7 +5,8 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.Int @@ -53,7 +54,7 @@ public data class CacheV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "cache", _customVersion ?: "v2") { +) : Action("actions", "cache", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -68,13 +69,11 @@ public data class CacheV2( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * A boolean value to indicate an exact match was found for the primary key */ public val cacheHit: String = "steps.$stepId.outputs.cache-hit" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheV3.kt index dfba05ac45..3bf3e22b51 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CacheV3.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int @@ -57,7 +58,7 @@ public data class CacheV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "cache", _customVersion ?: "v3") { +) : Action("actions", "cache", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -74,13 +75,11 @@ public data class CacheV3( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * A boolean value to indicate an exact match was found for the primary key */ public val cacheHit: String = "steps.$stepId.outputs.cache-hit" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CheckoutV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CheckoutV2.kt index 088dfc45f3..3226ab5073 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CheckoutV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CheckoutV2.kt @@ -6,6 +6,7 @@ package it.krzeminski.githubactions.actions.actions import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -115,7 +116,7 @@ public data class CheckoutV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("actions", "checkout", _customVersion ?: "v2") { +) : Action("actions", "checkout", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -136,6 +137,8 @@ public data class CheckoutV2( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class FetchDepth( public val integerValue: Int, ) { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CheckoutV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CheckoutV3.kt index 36b68b3ced..f368cd07cf 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CheckoutV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CheckoutV3.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.actions import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int @@ -114,7 +115,7 @@ public data class CheckoutV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("actions", "checkout", _customVersion ?: "v3") { +) : Action("actions", "checkout", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -136,6 +137,8 @@ public data class CheckoutV3( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class FetchDepth( public val integerValue: Int, ) { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CreateReleaseV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CreateReleaseV1.kt index 64d90da14c..7f581ec023 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CreateReleaseV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/CreateReleaseV1.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -69,8 +70,7 @@ public data class CreateReleaseV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "create-release", _customVersion ?: "v1") - { +) : Action("actions", "create-release", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -90,8 +90,8 @@ public data class CreateReleaseV1( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The ID of the created Release */ @@ -106,7 +106,5 @@ public data class CreateReleaseV1( * The URL for uploading assets to the release */ public val uploadUrl: String = "steps.$stepId.outputs.upload_url" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/DownloadArtifactV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/DownloadArtifactV2.kt index 5c7c7ca848..b5bcfe4b77 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/DownloadArtifactV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/DownloadArtifactV2.kt @@ -6,6 +6,7 @@ package it.krzeminski.githubactions.actions.actions import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String @@ -44,7 +45,7 @@ public data class DownloadArtifactV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("actions", "download-artifact", _customVersion ?: "v2") { +) : Action("actions", "download-artifact", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -53,4 +54,6 @@ public data class DownloadArtifactV2( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/DownloadArtifactV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/DownloadArtifactV3.kt index 00ae9d1fb8..5037c7497b 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/DownloadArtifactV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/DownloadArtifactV3.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.actions import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -37,7 +38,7 @@ public data class DownloadArtifactV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("actions", "download-artifact", _customVersion ?: "v3") { +) : Action("actions", "download-artifact", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -46,4 +47,6 @@ public data class DownloadArtifactV3( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/FirstInteractionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/FirstInteractionV1.kt index 33e74d2001..60806d4e9b 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/FirstInteractionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/FirstInteractionV1.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.actions import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -40,7 +41,7 @@ public data class FirstInteractionV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("actions", "first-interaction", _customVersion ?: "v1") { +) : Action("actions", "first-interaction", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -50,4 +51,6 @@ public data class FirstInteractionV1( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/GithubScriptV6.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/GithubScriptV6.kt index 3acf2bdee5..b1a2be6eb9 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/GithubScriptV6.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/GithubScriptV6.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int @@ -64,7 +65,7 @@ public data class GithubScriptV6( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "github-script", _customVersion ?: "v6") { +) : Action("actions", "github-script", _customVersion ?: "v6") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -96,13 +97,11 @@ public data class GithubScriptV6( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The return value of the script, stringified with `JSON.stringify` */ public val result: String = "steps.$stepId.outputs.result" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/LabelerV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/LabelerV4.kt index 785ea11cbc..484087fe42 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/LabelerV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/LabelerV4.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.actions import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -41,7 +42,7 @@ public data class LabelerV4( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("actions", "labeler", _customVersion ?: "v4") { +) : Action("actions", "labeler", _customVersion ?: "v4") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -51,4 +52,6 @@ public data class LabelerV4( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupDotnetV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupDotnetV2.kt index cd37347671..729069a638 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupDotnetV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupDotnetV2.kt @@ -6,6 +6,7 @@ package it.krzeminski.githubactions.actions.actions import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -66,7 +67,7 @@ public data class SetupDotnetV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("actions", "setup-dotnet", _customVersion ?: "v2") { +) : Action("actions", "setup-dotnet", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -79,4 +80,6 @@ public data class SetupDotnetV2( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupDotnetV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupDotnetV3.kt index da3111f7a7..16aabbe1b7 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupDotnetV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupDotnetV3.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -58,7 +59,7 @@ public data class SetupDotnetV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "setup-dotnet", _customVersion ?: "v3") { +) : Action("actions", "setup-dotnet", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -93,13 +94,11 @@ public data class SetupDotnetV3( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Contains the installed by action .NET SDK version for reuse. */ public val dotnetVersion: String = "steps.$stepId.outputs.dotnet-version" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupGoV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupGoV3.kt index 6961c6c81e..64c71a73c5 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupGoV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupGoV3.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -62,7 +63,7 @@ public data class SetupGoV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "setup-go", _customVersion ?: "v3") { +) : Action("actions", "setup-go", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -92,8 +93,8 @@ public data class SetupGoV3( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The installed Go version. Useful when given a version range as input. */ @@ -103,7 +104,5 @@ public data class SetupGoV3( * A boolean value to indicate if a cache was hit */ public val cacheHit: String = "steps.$stepId.outputs.cache-hit" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupJavaV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupJavaV2.kt index b51458ba5b..c380d66998 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupJavaV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupJavaV2.kt @@ -5,7 +5,8 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -101,7 +102,7 @@ public data class SetupJavaV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "setup-java", _customVersion ?: "v2") { +) : Action("actions", "setup-java", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -177,8 +178,8 @@ public data class SetupJavaV2( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Distribution of Java that has been installed */ @@ -193,7 +194,5 @@ public data class SetupJavaV2( * Path to where the java environment has been installed (same as $JAVA_HOME) */ public val path: String = "steps.$stepId.outputs.path" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupJavaV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupJavaV3.kt index efb0971c6d..211fd09f0b 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupJavaV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupJavaV3.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -115,7 +116,7 @@ public data class SetupJavaV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "setup-java", _customVersion ?: "v3") { +) : Action("actions", "setup-java", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -199,8 +200,8 @@ public data class SetupJavaV3( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Distribution of Java that has been installed */ @@ -220,7 +221,5 @@ public data class SetupJavaV3( * A boolean value to indicate an exact match was found for the primary key */ public val cacheHit: String = "steps.$stepId.outputs.cache-hit" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupNodeV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupNodeV2.kt index cd9e6a63a3..f9bd4b2471 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupNodeV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupNodeV2.kt @@ -5,7 +5,8 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -89,7 +90,7 @@ public data class SetupNodeV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "setup-node", _customVersion ?: "v2") { +) : Action("actions", "setup-node", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -125,13 +126,11 @@ public data class SetupNodeV2( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * A boolean value to indicate if a cache was hit */ public val cacheHit: String = "steps.$stepId.outputs.cache-hit" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupNodeV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupNodeV3.kt index f90408b4c8..2fed8c1630 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupNodeV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupNodeV3.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -81,7 +82,7 @@ public data class SetupNodeV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "setup-node", _customVersion ?: "v3") { +) : Action("actions", "setup-node", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -116,8 +117,8 @@ public data class SetupNodeV3( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * A boolean value to indicate if a cache was hit. */ @@ -127,7 +128,5 @@ public data class SetupNodeV3( * The installed node version. */ public val nodeVersion: String = "steps.$stepId.outputs.node-version" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV2.kt index 6008bb3100..1f7e36eda8 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV2.kt @@ -5,7 +5,8 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String @@ -60,7 +61,7 @@ public data class SetupPythonV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "setup-python", _customVersion ?: "v2") { +) : Action("actions", "setup-python", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -100,13 +101,11 @@ public data class SetupPythonV2( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The installed python version. Useful when given a version range as input. */ public val pythonVersion: String = "steps.$stepId.outputs.python-version" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV3.kt index 5ece4136c5..04ab88189f 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV3.kt @@ -5,7 +5,8 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String @@ -60,7 +61,7 @@ public data class SetupPythonV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "setup-python", _customVersion ?: "v3") { +) : Action("actions", "setup-python", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -102,8 +103,8 @@ public data class SetupPythonV3( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The installed python version. Useful when given a version range as input. */ @@ -113,7 +114,5 @@ public data class SetupPythonV3( * A boolean value to indicate a cache entry was found */ public val cacheHit: String = "steps.$stepId.outputs.cache-hit" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV4.kt index b98a7078f2..36bb3d6317 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/SetupPythonV4.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -69,7 +70,7 @@ public data class SetupPythonV4( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "setup-python", _customVersion ?: "v4") { +) : Action("actions", "setup-python", _customVersion ?: "v4") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -114,8 +115,8 @@ public data class SetupPythonV4( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The installed Python or PyPy version. Useful when given a version range as input. */ @@ -130,7 +131,5 @@ public data class SetupPythonV4( * The absolute path to the Python or PyPy executable. */ public val pythonPath: String = "steps.$stepId.outputs.python-path" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV5.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV5.kt index 6e5b267542..cfc83e2088 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV5.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV5.kt @@ -5,7 +5,8 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -294,7 +295,7 @@ public data class StaleV5( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "stale", _customVersion ?: "v5") { +) : Action("actions", "stale", _customVersion ?: "v5") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -380,8 +381,8 @@ public data class StaleV5( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * List of all closed issues and pull requests. */ @@ -391,7 +392,5 @@ public data class StaleV5( * List of all staled issues and pull requests. */ public val staledIssuesPrs: String = "steps.$stepId.outputs.staled-issues-prs" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV6.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV6.kt index b8733352b1..a2b3c998dd 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV6.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV6.kt @@ -5,7 +5,8 @@ package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -294,7 +295,7 @@ public data class StaleV6( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "stale", _customVersion ?: "v6") { +) : Action("actions", "stale", _customVersion ?: "v6") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -380,8 +381,8 @@ public data class StaleV6( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * List of all closed issues and pull requests. */ @@ -391,7 +392,5 @@ public data class StaleV6( * List of all staled issues and pull requests. */ public val staledIssuesPrs: String = "steps.$stepId.outputs.staled-issues-prs" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV7.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV7.kt index 73382e8356..8075b80622 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV7.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/StaleV7.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.actions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Float @@ -288,7 +289,7 @@ public data class StaleV7( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions", "stale", _customVersion ?: "v7") { +) : Action("actions", "stale", _customVersion ?: "v7") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -374,8 +375,8 @@ public data class StaleV7( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * List of all closed issues and pull requests. */ @@ -385,7 +386,5 @@ public data class StaleV7( * List of all staled issues and pull requests. */ public val staledIssuesPrs: String = "steps.$stepId.outputs.staled-issues-prs" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/UploadArtifactV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/UploadArtifactV2.kt index 80f004f036..7fba044d40 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/UploadArtifactV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/UploadArtifactV2.kt @@ -6,6 +6,7 @@ package it.krzeminski.githubactions.actions.actions import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.Int @@ -58,7 +59,7 @@ public data class UploadArtifactV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("actions", "upload-artifact", _customVersion ?: "v2") { +) : Action("actions", "upload-artifact", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -70,6 +71,8 @@ public data class UploadArtifactV2( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class BehaviorIfNoFilesFound( public val stringValue: String, ) { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/UploadArtifactV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/UploadArtifactV3.kt index 3e11ede174..36b565e87e 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/UploadArtifactV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actions/UploadArtifactV3.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.actions import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Int import kotlin.String @@ -51,7 +52,7 @@ public data class UploadArtifactV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("actions", "upload-artifact", _customVersion ?: "v3") { +) : Action("actions", "upload-artifact", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -63,6 +64,8 @@ public data class UploadArtifactV3( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class BehaviorIfNoFilesFound( public val stringValue: String, ) { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/AuditCheckV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/AuditCheckV1.kt index 07c4612565..e017d9ecb5 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/AuditCheckV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/AuditCheckV1.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.actionsrs import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -32,7 +33,7 @@ public data class AuditCheckV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("actions-rs", "audit-check", _customVersion ?: "v1") { +) : Action("actions-rs", "audit-check", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -40,4 +41,6 @@ public data class AuditCheckV1( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/CargoV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/CargoV1.kt index 260d6ea5d1..a96fac0c00 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/CargoV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/CargoV1.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.actionsrs import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -46,7 +47,7 @@ public data class CargoV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("actions-rs", "cargo", _customVersion ?: "v1") { +) : Action("actions-rs", "cargo", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -58,6 +59,8 @@ public data class CargoV1( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class Command( public val stringValue: String, ) { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/ClippyCheckV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/ClippyCheckV1.kt index 5436b1fa05..d9d1818fbb 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/ClippyCheckV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/ClippyCheckV1.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.actionsrs import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -51,7 +52,7 @@ public data class ClippyCheckV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("actions-rs", "clippy-check", _customVersion ?: "v1") { +) : Action("actions-rs", "clippy-check", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -63,4 +64,6 @@ public data class ClippyCheckV1( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/ToolchainV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/ToolchainV1.kt index 4f64c859c5..bbf3a74215 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/ToolchainV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/actionsrs/ToolchainV1.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.actionsrs -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -59,7 +60,7 @@ public data class ToolchainV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("actions-rs", "toolchain", _customVersion ?: "v1") { +) : Action("actions-rs", "toolchain", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -76,8 +77,8 @@ public data class ToolchainV1( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Installed Rustc version */ @@ -97,7 +98,5 @@ public data class ToolchainV1( * Installed rustup version */ public val rustup: String = "steps.$stepId.outputs.rustup" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/anmol098/WakaReadmeStatsV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/anmol098/WakaReadmeStatsV4.kt index 86bf9f7a1a..f12f2f9220 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/anmol098/WakaReadmeStatsV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/anmol098/WakaReadmeStatsV4.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.anmol098 import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -96,7 +97,7 @@ public data class WakaReadmeStatsV4( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("anmol098", "waka-readme-stats", _customVersion ?: "v4") { +) : Action("anmol098", "waka-readme-stats", _customVersion ?: "v4") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -120,4 +121,6 @@ public data class WakaReadmeStatsV4( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/anothrnick/GithubTagActionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/anothrnick/GithubTagActionV1.kt index a51a73afc2..811742a029 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/anothrnick/GithubTagActionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/anothrnick/GithubTagActionV1.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.anothrnick -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -26,8 +27,7 @@ public data class GithubTagActionV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("anothrNick", "github-tag-action", _customVersion - ?: "v1") { +) : Action("anothrNick", "github-tag-action", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = LinkedHashMap(_customInputs) @@ -35,8 +35,8 @@ public data class GithubTagActionV1( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Generated tag */ @@ -51,7 +51,5 @@ public data class GithubTagActionV1( * The part of version which was bumped */ public val part: String = "steps.$stepId.outputs.part" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcrLoginV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcrLoginV1.kt index 75222d9521..14ff51bf93 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcrLoginV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcrLoginV1.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.awsactions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -46,8 +47,7 @@ public data class AmazonEcrLoginV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("aws-actions", "amazon-ecr-login", _customVersion ?: - "v1") { +) : Action("aws-actions", "amazon-ecr-login", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -73,14 +73,12 @@ public data class AmazonEcrLoginV1( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The URI of the ECR Private or ECR Public registry. If logging into multiple registries on * ECR Private, this output will not be set. */ public val registry: String = "steps.$stepId.outputs.registry" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcsDeployTaskDefinitionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcsDeployTaskDefinitionV1.kt index d7aa170c2d..e11518bb58 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcsDeployTaskDefinitionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcsDeployTaskDefinitionV1.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.awsactions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int @@ -79,7 +80,7 @@ public data class AmazonEcsDeployTaskDefinitionV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("aws-actions", +) : Action("aws-actions", "amazon-ecs-deploy-task-definition", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( @@ -101,8 +102,8 @@ public data class AmazonEcsDeployTaskDefinitionV1( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The ARN of the registered ECS task definition */ @@ -113,7 +114,5 @@ public data class AmazonEcsDeployTaskDefinitionV1( * deployment controller */ public val codedeployDeploymentId: String = "steps.$stepId.outputs.codedeploy-deployment-id" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcsRenderTaskDefinitionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcsRenderTaskDefinitionV1.kt index d70d8e2d4c..83ef4c5565 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcsRenderTaskDefinitionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/AmazonEcsRenderTaskDefinitionV1.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.awsactions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -48,7 +49,7 @@ public data class AmazonEcsRenderTaskDefinitionV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("aws-actions", +) : Action("aws-actions", "amazon-ecs-render-task-definition", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( @@ -64,13 +65,11 @@ public data class AmazonEcsRenderTaskDefinitionV1( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The path to the rendered task definition file */ public val taskDefinition: String = "steps.$stepId.outputs.task-definition" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/ConfigureAwsCredentialsV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/ConfigureAwsCredentialsV1.kt index e9b3c97ef3..53678cd981 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/ConfigureAwsCredentialsV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/awsactions/ConfigureAwsCredentialsV1.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.awsactions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int @@ -85,7 +86,7 @@ public data class ConfigureAwsCredentialsV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("aws-actions", "configure-aws-credentials", +) : Action("aws-actions", "configure-aws-credentials", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( @@ -109,13 +110,11 @@ public data class ConfigureAwsCredentialsV1( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The AWS account ID for the provided credentials */ public val awsAccountId: String = "steps.$stepId.outputs.aws-account-id" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/axelop/GooglejavaformatActionV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/axelop/GooglejavaformatActionV3.kt index 4b728cc268..d4d0259a0c 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/axelop/GooglejavaformatActionV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/axelop/GooglejavaformatActionV3.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.axelop import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -58,7 +59,7 @@ public data class GooglejavaformatActionV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("axel-op", "googlejavaformat-action", _customVersion ?: "v3") { +) : Action("axel-op", "googlejavaformat-action", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -72,4 +73,6 @@ public data class GooglejavaformatActionV3( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/DockerLoginV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/DockerLoginV1.kt index 4a5cac176e..333f1a87eb 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/DockerLoginV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/DockerLoginV1.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.azure import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -40,7 +41,7 @@ public data class DockerLoginV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("Azure", "docker-login", _customVersion ?: "v1") { +) : Action("Azure", "docker-login", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -50,4 +51,6 @@ public data class DockerLoginV1( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/LoginV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/LoginV1.kt index c2e7fac8c5..16680b9433 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/LoginV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/LoginV1.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.azure import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -62,7 +63,7 @@ public data class LoginV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("Azure", "login", _customVersion ?: "v1") { +) : Action("Azure", "login", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -78,6 +79,8 @@ public data class LoginV1( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class Environment( public val stringValue: String, ) { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/WebappsDeployV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/WebappsDeployV2.kt index ce1ec2b2fd..f8c4167375 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/WebappsDeployV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/WebappsDeployV2.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.azure -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -63,7 +64,7 @@ public data class WebappsDeployV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("Azure", "webapps-deploy", _customVersion ?: "v2") { +) : Action("Azure", "webapps-deploy", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -81,13 +82,11 @@ public data class WebappsDeployV2( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * URL to work with your webapp */ public val webappUrl: String = "steps.$stepId.outputs.webapp-url" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/bahmutov/NpmInstallV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/bahmutov/NpmInstallV1.kt index f4ffe4f8af..a516f5223b 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/bahmutov/NpmInstallV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/bahmutov/NpmInstallV1.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.bahmutov import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -46,7 +47,7 @@ public data class NpmInstallV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("bahmutov", "npm-install", _customVersion ?: "v1") { +) : Action("bahmutov", "npm-install", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -57,4 +58,6 @@ public data class NpmInstallV1( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/borales/ActionsYarnV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/borales/ActionsYarnV3.kt index a8abf41616..38a23791a2 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/borales/ActionsYarnV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/borales/ActionsYarnV3.kt @@ -6,6 +6,7 @@ package it.krzeminski.githubactions.actions.borales import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String @@ -47,7 +48,7 @@ public data class ActionsYarnV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("Borales", "actions-yarn", _customVersion ?: "v3") { +) : Action("Borales", "actions-yarn", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -57,4 +58,6 @@ public data class ActionsYarnV3( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/borales/ActionsYarnV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/borales/ActionsYarnV4.kt index 0e162fd9c2..60e3f0625b 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/borales/ActionsYarnV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/borales/ActionsYarnV4.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.borales import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -36,7 +37,7 @@ public data class ActionsYarnV4( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("Borales", "actions-yarn", _customVersion ?: "v4") { +) : Action("Borales", "actions-yarn", _customVersion ?: "v4") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -45,4 +46,6 @@ public data class ActionsYarnV4( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/burrunan/GradleCacheActionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/burrunan/GradleCacheActionV1.kt index 536e6432a2..59fcf84617 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/burrunan/GradleCacheActionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/burrunan/GradleCacheActionV1.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.burrunan -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -129,8 +130,7 @@ public data class GradleCacheActionV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("burrunan", "gradle-cache-action", _customVersion - ?: "v1") { +) : Action("burrunan", "gradle-cache-action", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -167,13 +167,11 @@ public data class GradleCacheActionV1( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Link to the build scan if any */ public val buildScanUrl: String = "steps.$stepId.outputs.build-scan-url" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/BrowserslistUpdateActionV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/BrowserslistUpdateActionV2.kt index 321f00017a..43795bace3 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/BrowserslistUpdateActionV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/BrowserslistUpdateActionV2.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.c2corg -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -62,7 +63,7 @@ public data class BrowserslistUpdateActionV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("c2corg", "browserslist-update-action", +) : Action("c2corg", "browserslist-update-action", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( @@ -82,8 +83,8 @@ public data class BrowserslistUpdateActionV2( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * A boolean set to true when changes were found and a pull request was created or updated. */ @@ -98,7 +99,5 @@ public data class BrowserslistUpdateActionV2( * Whether the pull request was created or updated, if applies. */ public val prStatus: String = "steps.$stepId.outputs.pr_status" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/TransifexPullRequestActionV5.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/TransifexPullRequestActionV5.kt index 5f72e9fbef..4eb55b1b13 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/TransifexPullRequestActionV5.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/c2corg/TransifexPullRequestActionV5.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.c2corg import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -73,7 +74,7 @@ public data class TransifexPullRequestActionV5( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("c2corg", "transifex-pull-request-action", _customVersion ?: "v5") { +) : Action("c2corg", "transifex-pull-request-action", _customVersion ?: "v5") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -92,6 +93,8 @@ public data class TransifexPullRequestActionV5( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class Transform( public val stringValue: String, ) { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV17.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV17.kt index 66e4ea94cb..46a2cf3d6f 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV17.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV17.kt @@ -6,6 +6,7 @@ package it.krzeminski.githubactions.actions.cachix import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String @@ -52,7 +53,7 @@ public data class InstallNixActionV17( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("cachix", "install-nix-action", _customVersion ?: "v17") { +) : Action("cachix", "install-nix-action", _customVersion ?: "v17") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -63,4 +64,6 @@ public data class InstallNixActionV17( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV18.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV18.kt index 2bcd221deb..9c5d0e5c70 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV18.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV18.kt @@ -6,6 +6,7 @@ package it.krzeminski.githubactions.actions.cachix import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String @@ -52,7 +53,7 @@ public data class InstallNixActionV18( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("cachix", "install-nix-action", _customVersion ?: "v18") { +) : Action("cachix", "install-nix-action", _customVersion ?: "v18") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -63,4 +64,6 @@ public data class InstallNixActionV18( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV19.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV19.kt index 5d7c14fee9..0010c75a79 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV19.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/cachix/InstallNixActionV19.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.cachix import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -49,7 +50,7 @@ public data class InstallNixActionV19( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("cachix", "install-nix-action", _customVersion ?: "v19") { +) : Action("cachix", "install-nix-action", _customVersion ?: "v19") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -61,4 +62,6 @@ public data class InstallNixActionV19( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/codecov/CodecovActionV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/codecov/CodecovActionV3.kt index c6d9105046..e7a925be54 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/codecov/CodecovActionV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/codecov/CodecovActionV3.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.codecov import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int @@ -154,7 +155,7 @@ public data class CodecovActionV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("codecov", "codecov-action", _customVersion ?: "v3") { +) : Action("codecov", "codecov-action", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -192,6 +193,8 @@ public data class CodecovActionV3( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class OperatingSystem( public val stringValue: String, ) { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV2.kt index 39bed3f7b0..f9549b1e2d 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV2.kt @@ -5,7 +5,8 @@ package it.krzeminski.githubactions.actions.docker -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -142,8 +143,7 @@ public data class BuildPushActionV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("docker", "build-push-action", _customVersion ?: - "v2") { +) : Action("docker", "build-push-action", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -180,8 +180,8 @@ public data class BuildPushActionV2( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Image ID */ @@ -196,7 +196,5 @@ public data class BuildPushActionV2( * Build result metadata */ public val metadata: String = "steps.$stepId.outputs.metadata" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV3.kt index e637d88d46..b9f7bd3e86 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV3.kt @@ -5,7 +5,8 @@ package it.krzeminski.githubactions.actions.docker -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -158,8 +159,7 @@ public data class BuildPushActionV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("docker", "build-push-action", _customVersion ?: - "v3") { +) : Action("docker", "build-push-action", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -200,8 +200,8 @@ public data class BuildPushActionV3( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Image ID */ @@ -216,7 +216,5 @@ public data class BuildPushActionV3( * Build result metadata */ public val metadata: String = "steps.$stepId.outputs.metadata" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV4.kt index f5f410843e..d7e3c42487 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/BuildPushActionV4.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.docker -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -151,8 +152,7 @@ public data class BuildPushActionV4( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("docker", "build-push-action", _customVersion ?: - "v4") { +) : Action("docker", "build-push-action", _customVersion ?: "v4") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -193,8 +193,8 @@ public data class BuildPushActionV4( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Image ID */ @@ -209,7 +209,5 @@ public data class BuildPushActionV4( * Build result metadata */ public val metadata: String = "steps.$stepId.outputs.metadata" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/LoginActionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/LoginActionV1.kt index f59e1ae181..d1bdefbc67 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/LoginActionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/LoginActionV1.kt @@ -6,6 +6,7 @@ package it.krzeminski.githubactions.actions.docker import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -56,7 +57,7 @@ public data class LoginActionV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("docker", "login-action", _customVersion ?: "v1") { +) : Action("docker", "login-action", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -68,4 +69,6 @@ public data class LoginActionV1( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/LoginActionV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/LoginActionV2.kt index ed4a7d027f..578d84833c 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/LoginActionV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/LoginActionV2.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.docker import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -49,7 +50,7 @@ public data class LoginActionV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("docker", "login-action", _customVersion ?: "v2") { +) : Action("docker", "login-action", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -61,4 +62,6 @@ public data class LoginActionV2( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/SetupBuildxActionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/SetupBuildxActionV1.kt index de6191a03a..f19b1ee898 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/SetupBuildxActionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/SetupBuildxActionV1.kt @@ -5,7 +5,8 @@ package it.krzeminski.githubactions.actions.docker -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -73,8 +74,7 @@ public data class SetupBuildxActionV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("docker", "setup-buildx-action", _customVersion - ?: "v1") { +) : Action("docker", "setup-buildx-action", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -94,8 +94,8 @@ public data class SetupBuildxActionV1( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Builder name */ @@ -125,7 +125,5 @@ public data class SetupBuildxActionV1( * Builder node platforms available (comma separated) */ public val platforms: String = "steps.$stepId.outputs.platforms" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/SetupBuildxActionV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/SetupBuildxActionV2.kt index 05f17c2700..243f2d360c 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/SetupBuildxActionV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/docker/SetupBuildxActionV2.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.docker -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -74,8 +75,7 @@ public data class SetupBuildxActionV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("docker", "setup-buildx-action", _customVersion - ?: "v2") { +) : Action("docker", "setup-buildx-action", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -97,8 +97,8 @@ public data class SetupBuildxActionV2( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Builder name */ @@ -133,7 +133,5 @@ public data class SetupBuildxActionV2( * Builder node flags (deprecated, use nodes output instead) */ public val flags: String = "steps.$stepId.outputs.flags" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/elgohr/PublishDockerGithubActionV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/elgohr/PublishDockerGithubActionV4.kt index a8cf6f78e1..a0c1c62ef0 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/elgohr/PublishDockerGithubActionV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/elgohr/PublishDockerGithubActionV4.kt @@ -5,7 +5,8 @@ package it.krzeminski.githubactions.actions.elgohr -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -106,7 +107,7 @@ public data class PublishDockerGithubActionV4( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("elgohr", "Publish-Docker-Github-Action", +) : Action("elgohr", "Publish-Docker-Github-Action", _customVersion ?: "v4") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( @@ -135,8 +136,8 @@ public data class PublishDockerGithubActionV4( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Is the tag, which was pushed */ @@ -151,7 +152,5 @@ public data class PublishDockerGithubActionV4( * Is the digest of the image, which was pushed */ public val digest: String = "steps.$stepId.outputs.digest" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/elgohr/PublishDockerGithubActionV5.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/elgohr/PublishDockerGithubActionV5.kt index e7becc0fbb..8083ac6835 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/elgohr/PublishDockerGithubActionV5.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/elgohr/PublishDockerGithubActionV5.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.elgohr -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -99,7 +100,7 @@ public data class PublishDockerGithubActionV5( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("elgohr", "Publish-Docker-Github-Action", +) : Action("elgohr", "Publish-Docker-Github-Action", _customVersion ?: "v5") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( @@ -128,8 +129,8 @@ public data class PublishDockerGithubActionV5( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Is the tag, which was pushed */ @@ -144,7 +145,5 @@ public data class PublishDockerGithubActionV5( * Is the digest of the image, which was pushed */ public val digest: String = "steps.$stepId.outputs.digest" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/endbug/AddAndCommitV8.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/endbug/AddAndCommitV8.kt index f4a99b53bf..a7cc64086a 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/endbug/AddAndCommitV8.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/endbug/AddAndCommitV8.kt @@ -5,7 +5,8 @@ package it.krzeminski.githubactions.actions.endbug -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String @@ -103,7 +104,7 @@ public data class AddAndCommitV8( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("EndBug", "add-and-commit", _customVersion ?: "v8") { +) : Action("EndBug", "add-and-commit", _customVersion ?: "v8") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -158,8 +159,8 @@ public data class AddAndCommitV8( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Whether the action has created a commit. */ @@ -184,7 +185,5 @@ public data class AddAndCommitV8( * Whether the action has created a tag. */ public val tagged: String = "steps.$stepId.outputs.tagged" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/endbug/AddAndCommitV9.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/endbug/AddAndCommitV9.kt index 55f233d493..22df0d039d 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/endbug/AddAndCommitV9.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/endbug/AddAndCommitV9.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.endbug -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -105,7 +106,7 @@ public data class AddAndCommitV9( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("EndBug", "add-and-commit", _customVersion ?: "v9") { +) : Action("EndBug", "add-and-commit", _customVersion ?: "v9") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -162,8 +163,8 @@ public data class AddAndCommitV9( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Whether the action has created a commit. */ @@ -193,7 +194,5 @@ public data class AddAndCommitV9( * Whether the action has pushed a tag. */ public val tagPushed: String = "steps.$stepId.outputs.tag_pushed" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/ericcornelissen/GitTagAnnotationActionV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/ericcornelissen/GitTagAnnotationActionV2.kt index 36b43b98bf..a56be7e7bf 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/ericcornelissen/GitTagAnnotationActionV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/ericcornelissen/GitTagAnnotationActionV2.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.ericcornelissen -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -32,8 +33,8 @@ public data class GitTagAnnotationActionV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("ericcornelissen", - "git-tag-annotation-action", _customVersion ?: "v2") { +) : Action("ericcornelissen", "git-tag-annotation-action", + _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -45,13 +46,11 @@ public data class GitTagAnnotationActionV2( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The git tag annotation */ public val gitTagAnnotation: String = "steps.$stepId.outputs.git-tag-annotation" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gautamkrishnar/BlogPostWorkflowV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gautamkrishnar/BlogPostWorkflowV1.kt index a3bd6d3dd1..d45cc5a7bb 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gautamkrishnar/BlogPostWorkflowV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gautamkrishnar/BlogPostWorkflowV1.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.gautamkrishnar -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int @@ -156,8 +157,8 @@ public data class BlogPostWorkflowV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("gautamkrishnar", "blog-post-workflow", - _customVersion ?: "v1") { +) : Action("gautamkrishnar", "blog-post-workflow", _customVersion ?: + "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -198,13 +199,11 @@ public data class BlogPostWorkflowV1( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * JSON stringified array of posts */ public val results: String = "steps.$stepId.outputs.results" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlecloudplatform/GithubActionsV0.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlecloudplatform/GithubActionsV0.kt index da9d1b6c0b..7e0cbb4953 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlecloudplatform/GithubActionsV0.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlecloudplatform/GithubActionsV0.kt @@ -6,6 +6,7 @@ package it.krzeminski.githubactions.actions.googlecloudplatform import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -86,7 +87,7 @@ public data class GithubActionsV0( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("GoogleCloudPlatform", "github-actions", _customVersion ?: "v0") { +) : Action("GoogleCloudPlatform", "github-actions", _customVersion ?: "v0") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -101,4 +102,6 @@ public data class GithubActionsV0( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlecloudplatform/GithubActionsV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlecloudplatform/GithubActionsV1.kt index 700dcc7341..ed81226f0e 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlecloudplatform/GithubActionsV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlecloudplatform/GithubActionsV1.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.googlecloudplatform import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -54,7 +55,7 @@ public data class GithubActionsV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("GoogleCloudPlatform", "github-actions", _customVersion ?: "v1") { +) : Action("GoogleCloudPlatform", "github-actions", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -65,4 +66,6 @@ public data class GithubActionsV1( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/AuthV0.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/AuthV0.kt index 876c79e08a..5c4eb97750 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/AuthV0.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/AuthV0.kt @@ -5,7 +5,8 @@ package it.krzeminski.githubactions.actions.googlegithubactions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -159,7 +160,7 @@ public data class AuthV0( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("google-github-actions", "auth", _customVersion ?: "v0") { +) : Action("google-github-actions", "auth", _customVersion ?: "v0") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -200,8 +201,8 @@ public data class AuthV0( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Provided or extracted value for the Google Cloud project ID. */ @@ -230,7 +231,5 @@ public data class AuthV0( * "id_token". */ public val idToken: String = "steps.$stepId.outputs.id_token" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/AuthV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/AuthV1.kt index 5ad2021fb7..16496e4021 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/AuthV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/AuthV1.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.googlegithubactions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int @@ -152,7 +153,7 @@ public data class AuthV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("google-github-actions", "auth", _customVersion ?: "v1") { +) : Action("google-github-actions", "auth", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -193,8 +194,8 @@ public data class AuthV1( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Provided or extracted value for the Google Cloud project ID. */ @@ -223,7 +224,5 @@ public data class AuthV1( * "id_token". */ public val idToken: String = "steps.$stepId.outputs.id_token" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/SetupGcloudV0.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/SetupGcloudV0.kt index 4613aab398..95f2eeffbe 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/SetupGcloudV0.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/SetupGcloudV0.kt @@ -6,6 +6,7 @@ package it.krzeminski.githubactions.actions.googlegithubactions import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -86,7 +87,7 @@ public data class SetupGcloudV0( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("google-github-actions", "setup-gcloud", _customVersion ?: "v0") { +) : Action("google-github-actions", "setup-gcloud", _customVersion ?: "v0") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -103,6 +104,8 @@ public data class SetupGcloudV0( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class Component( public val stringValue: String, ) { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/SetupGcloudV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/SetupGcloudV1.kt index a2177c8d79..41b6fa9a4a 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/SetupGcloudV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/googlegithubactions/SetupGcloudV1.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.googlegithubactions import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -54,7 +55,7 @@ public data class SetupGcloudV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("google-github-actions", "setup-gcloud", _customVersion ?: "v1") { +) : Action("google-github-actions", "setup-gcloud", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -67,6 +68,8 @@ public data class SetupGcloudV1( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class Component( public val stringValue: String, ) { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradle/GradleBuildActionV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradle/GradleBuildActionV2.kt index 5baa191b33..127ab6c23a 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradle/GradleBuildActionV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradle/GradleBuildActionV2.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.gradle -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -89,8 +90,7 @@ public data class GradleBuildActionV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("gradle", "gradle-build-action", _customVersion - ?: "v2") { +) : Action("gradle", "gradle-build-action", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -114,13 +114,11 @@ public data class GradleBuildActionV2( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Link to the build scan if any */ public val buildScanUrl: String = "steps.$stepId.outputs.build-scan-url" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradle/WrapperValidationActionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradle/WrapperValidationActionV1.kt index db65b1e6ae..791691e0c7 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradle/WrapperValidationActionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradle/WrapperValidationActionV1.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.gradle import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int @@ -43,7 +44,7 @@ public data class WrapperValidationActionV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("gradle", "wrapper-validation-action", _customVersion ?: "v1") { +) : Action("gradle", "wrapper-validation-action", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -53,4 +54,6 @@ public data class WrapperValidationActionV1( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradleupdate/UpdateGradleWrapperActionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradleupdate/UpdateGradleWrapperActionV1.kt index fb8147df84..9454b0e3ca 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradleupdate/UpdateGradleWrapperActionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/gradleupdate/UpdateGradleWrapperActionV1.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.gradleupdate import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -71,7 +72,8 @@ public data class UpdateGradleWrapperActionV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("gradle-update", "update-gradle-wrapper-action", _customVersion ?: "v1") { +) : Action("gradle-update", "update-gradle-wrapper-action", _customVersion ?: "v1") + { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -89,6 +91,8 @@ public data class UpdateGradleWrapperActionV1( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class ReleaseChannel( public val stringValue: String, ) { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/jamesives/GithubPagesDeployActionV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/jamesives/GithubPagesDeployActionV4.kt index fef695a7cf..f0669b16c6 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/jamesives/GithubPagesDeployActionV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/jamesives/GithubPagesDeployActionV4.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.jamesives -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -121,7 +122,7 @@ public data class GithubPagesDeployActionV4( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("JamesIves", "github-pages-deploy-action", +) : Action("JamesIves", "github-pages-deploy-action", _customVersion ?: "v4") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( @@ -149,14 +150,12 @@ public data class GithubPagesDeployActionV4( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The status of the deployment that indicates if the run failed or passed. Possible outputs * include: success|failed|skipped */ public val deploymentStatus: String = "steps.$stepId.outputs.deployment-status" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/jasonetco/CreateAnIssueV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/jasonetco/CreateAnIssueV2.kt index f5f4edd65f..52ca6a4822 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/jasonetco/CreateAnIssueV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/jasonetco/CreateAnIssueV2.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.jasonetco -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -50,8 +51,7 @@ public data class CreateAnIssueV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("JasonEtco", "create-an-issue", _customVersion ?: - "v2") { +) : Action("JasonEtco", "create-an-issue", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -67,8 +67,8 @@ public data class CreateAnIssueV2( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Number of the issue that was created */ @@ -78,7 +78,5 @@ public data class CreateAnIssueV2( * URL of the issue that was created */ public val url: String = "steps.$stepId.outputs.url" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/juliaactions/SetupJuliaV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/juliaactions/SetupJuliaV1.kt index 55744f59c4..9bd9e50abc 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/juliaactions/SetupJuliaV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/juliaactions/SetupJuliaV1.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.juliaactions -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -46,8 +47,7 @@ public data class SetupJuliaV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("julia-actions", "setup-julia", _customVersion ?: "v1") - { +) : Action("julia-actions", "setup-julia", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -76,8 +76,8 @@ public data class SetupJuliaV1( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The installed Julia version. May vary from the version input if a version range was given * as input. @@ -89,7 +89,5 @@ public data class SetupJuliaV1( * https://docs.julialang.org/en/v1/manual/environment-variables/#JULIA_BINDIR */ public val juliaBindir: String = "steps.$stepId.outputs.julia-bindir" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV0.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV0.kt index f8e590d114..c2e77c64ba 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV0.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV0.kt @@ -6,6 +6,7 @@ package it.krzeminski.githubactions.actions.krzema12 import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Deprecated import kotlin.String @@ -33,8 +34,10 @@ public data class GithubActionsTypingV0( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("krzema12", "github-actions-typing", _customVersion ?: "v0") { +) : Action("krzema12", "github-actions-typing", _customVersion ?: "v0") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = LinkedHashMap(_customInputs) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV1.kt index d9b11d9de3..0e08cb5ba4 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/krzema12/GithubActionsTypingV1.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.krzema12 import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -26,8 +27,10 @@ public data class GithubActionsTypingV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("krzema12", "github-actions-typing", _customVersion ?: "v1") { +) : Action("krzema12", "github-actions-typing", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = LinkedHashMap(_customInputs) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/CheckGradleVersionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/CheckGradleVersionV1.kt index 7f81d55e72..19cbc918a4 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/CheckGradleVersionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/CheckGradleVersionV1.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.madhead -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.String import kotlin.Suppress @@ -32,8 +33,8 @@ public data class CheckGradleVersionV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("madhead", "check-gradle-version", - _customVersion ?: "v1") { +) : Action("madhead", "check-gradle-version", _customVersion ?: "v1") + { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -45,8 +46,8 @@ public data class CheckGradleVersionV1( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Project Gradle version */ @@ -56,7 +57,5 @@ public data class CheckGradleVersionV1( * Current Gradle version */ public val current: String = "steps.$stepId.outputs.current" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV0.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV0.kt index e9ad86cbac..3136188543 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV0.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV0.kt @@ -6,6 +6,7 @@ package it.krzeminski.githubactions.actions.madhead import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -87,7 +88,7 @@ public data class IntellijHttpClientActionV0( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("madhead", "intellij-http-client-action", _customVersion ?: "v0") { +) : Action("madhead", "intellij-http-client-action", _customVersion ?: "v0") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -107,6 +108,8 @@ public data class IntellijHttpClientActionV0( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class LogLevel( public val stringValue: String, ) { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV231.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV231.kt index f2ae464b6a..bc9ffae9f3 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV231.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/IntellijHttpClientActionV231.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.madhead import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int @@ -80,7 +81,7 @@ public data class IntellijHttpClientActionV231( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("madhead", "intellij-http-client-action", _customVersion ?: "v231") { +) : Action("madhead", "intellij-http-client-action", _customVersion ?: "v231") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -100,6 +101,8 @@ public data class IntellijHttpClientActionV231( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class LogLevel( public val stringValue: String, ) { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV2.kt index 1fc911010c..ce30c17a40 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV2.kt @@ -5,7 +5,8 @@ package it.krzeminski.githubactions.actions.madhead -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -56,7 +57,7 @@ public data class SemverUtilsV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("madhead", "semver-utils", _customVersion ?: "v2") { +) : Action("madhead", "semver-utils", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -72,8 +73,8 @@ public data class SemverUtilsV2( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Version's release (major.minor.patch) */ @@ -161,7 +162,5 @@ public data class SemverUtilsV2( * A result of the call of the semver's `inc` function with `prerelease` increment */ public val incPrerelease: String = "steps.$stepId.outputs.inc-prerelease" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV3.kt index 5f6a40ec7a..a868664879 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/madhead/SemverUtilsV3.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.madhead -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -54,7 +55,7 @@ public data class SemverUtilsV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("madhead", "semver-utils", _customVersion ?: "v3") { +) : Action("madhead", "semver-utils", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -71,8 +72,8 @@ public data class SemverUtilsV3( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Version's release (major.minor.patch) */ @@ -165,7 +166,5 @@ public data class SemverUtilsV3( * A result of the call of the semver's `inc` function with `prerelease` increment */ public val incPrerelease: String = "steps.$stepId.outputs.inc-prerelease" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/microsoft/SetupMsbuildV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/microsoft/SetupMsbuildV1.kt index 5d693e9b0e..312298c437 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/microsoft/SetupMsbuildV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/microsoft/SetupMsbuildV1.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.microsoft -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -46,8 +47,7 @@ public data class SetupMsbuildV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("microsoft", "setup-msbuild", _customVersion ?: "v1") - { +) : Action("microsoft", "setup-msbuild", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -76,13 +76,11 @@ public data class SetupMsbuildV1( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The resulting location of msbuild for your inputs */ public val msbuildPath: String = "steps.$stepId.outputs.msbuildPath" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/mikas/KoverReportV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/mikas/KoverReportV1.kt index acc0715e0e..a716f184fd 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/mikas/KoverReportV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/mikas/KoverReportV1.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.mikas -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int @@ -54,7 +55,7 @@ public data class KoverReportV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("mi-kas", "kover-report", _customVersion ?: "v1") { +) : Action("mi-kas", "kover-report", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -71,8 +72,8 @@ public data class KoverReportV1( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The overall coverage of the project */ @@ -82,7 +83,5 @@ public data class KoverReportV1( * The total coverage of all changed files */ public val coverageChangedFiles: String = "steps.$stepId.outputs.coverage-changed-files" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/nobrayner/DiscordWebhookV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/nobrayner/DiscordWebhookV1.kt index bd479f234c..d9c5b6e6cc 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/nobrayner/DiscordWebhookV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/nobrayner/DiscordWebhookV1.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.nobrayner import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -72,7 +73,7 @@ public data class DiscordWebhookV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("nobrayner", "discord-webhook", _customVersion ?: "v1") { +) : Action("nobrayner", "discord-webhook", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -89,4 +90,6 @@ public data class DiscordWebhookV1( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peaceiris/ActionsGhPagesV3.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peaceiris/ActionsGhPagesV3.kt index 77ec97e87b..3e30a6b717 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peaceiris/ActionsGhPagesV3.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peaceiris/ActionsGhPagesV3.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.peaceiris import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -111,7 +112,7 @@ public data class ActionsGhPagesV3( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("peaceiris", "actions-gh-pages", _customVersion ?: "v3") { +) : Action("peaceiris", "actions-gh-pages", _customVersion ?: "v3") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -138,4 +139,6 @@ public data class ActionsGhPagesV3( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peaceiris/ActionsHugoV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peaceiris/ActionsHugoV2.kt index 11810afaff..caedeb800d 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peaceiris/ActionsHugoV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peaceiris/ActionsHugoV2.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.peaceiris import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -38,7 +39,7 @@ public data class ActionsHugoV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("peaceiris", "actions-hugo", _customVersion ?: "v2") { +) : Action("peaceiris", "actions-hugo", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -47,4 +48,6 @@ public data class ActionsHugoV2( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peterevans/CreateIssueFromFileV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peterevans/CreateIssueFromFileV4.kt index 20f53f294a..c46f116a1d 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peterevans/CreateIssueFromFileV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peterevans/CreateIssueFromFileV4.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.peterevans -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Int import kotlin.String @@ -58,8 +59,8 @@ public data class CreateIssueFromFileV4( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("peter-evans", "create-issue-from-file", - _customVersion ?: "v4") { +) : Action("peter-evans", "create-issue-from-file", _customVersion ?: + "v4") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -77,13 +78,11 @@ public data class CreateIssueFromFileV4( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The number of the created issue */ public val issueNumber: String = "steps.$stepId.outputs.issue-number" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peterevans/CreatePullRequestV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peterevans/CreatePullRequestV4.kt index a347007b2b..49c3e98a5f 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peterevans/CreatePullRequestV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/peterevans/CreatePullRequestV4.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.peterevans -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -118,8 +119,8 @@ public data class CreatePullRequestV4( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("peter-evans", "create-pull-request", - _customVersion ?: "v4") { +) : Action("peter-evans", "create-pull-request", _customVersion ?: + "v4") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -150,8 +151,8 @@ public data class CreatePullRequestV4( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The pull request number */ @@ -171,7 +172,5 @@ public data class CreatePullRequestV4( * The commit SHA of the pull request branch. */ public val pullRequestHeadSha: String = "steps.$stepId.outputs.pull-request-head-sha" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reactivecircus/AndroidEmulatorRunnerV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reactivecircus/AndroidEmulatorRunnerV2.kt index 1dc9ac71c5..0bcd3d913d 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reactivecircus/AndroidEmulatorRunnerV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reactivecircus/AndroidEmulatorRunnerV2.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.reactivecircus import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Int @@ -131,7 +132,7 @@ public data class AndroidEmulatorRunnerV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("ReactiveCircus", "android-emulator-runner", _customVersion ?: "v2") { +) : Action("ReactiveCircus", "android-emulator-runner", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -162,6 +163,8 @@ public data class AndroidEmulatorRunnerV2( ).toTypedArray() ) + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + public sealed class Target( public val stringValue: String, ) { diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reposync/PullRequestV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reposync/PullRequestV2.kt index 0445d64a46..bbabc6a357 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reposync/PullRequestV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reposync/PullRequestV2.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.reposync -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -87,7 +88,7 @@ public data class PullRequestV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("repo-sync", "pull-request", _customVersion ?: "v2") { +) : Action("repo-sync", "pull-request", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -112,8 +113,8 @@ public data class PullRequestV2( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Pull request URL */ @@ -133,7 +134,5 @@ public data class PullRequestV2( * Boolean string indicating whether any file has been changed */ public val hasChangedFiles: String = "steps.$stepId.outputs.has_changed_files" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/ruby/SetupRubyV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/ruby/SetupRubyV1.kt index 7b77b8ec85..fed4d40fd1 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/ruby/SetupRubyV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/ruby/SetupRubyV1.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.ruby -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -71,7 +72,7 @@ public data class SetupRubyV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("ruby", "setup-ruby", _customVersion ?: "v1") { +) : Action("ruby", "setup-ruby", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -88,13 +89,11 @@ public data class SetupRubyV1( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The prefix of the installed ruby */ public val rubyPrefix: String = "steps.$stepId.outputs.ruby-prefix" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/softprops/ActionGhReleaseV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/softprops/ActionGhReleaseV1.kt index f7351cb218..028cdc8bbf 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/softprops/ActionGhReleaseV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/softprops/ActionGhReleaseV1.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.softprops -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -91,8 +92,7 @@ public data class ActionGhReleaseV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("softprops", "action-gh-release", _customVersion ?: - "v1") { +) : Action("softprops", "action-gh-release", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -117,8 +117,8 @@ public data class ActionGhReleaseV1( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * URL to the Release HTML Page */ @@ -140,7 +140,5 @@ public data class ActionGhReleaseV1( * (minus the `uploader` field) */ public val assets: String = "steps.$stepId.outputs.assets" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/stefanzweifel/GitAutoCommitActionV4.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/stefanzweifel/GitAutoCommitActionV4.kt index d7f9ceee7f..a8386d4695 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/stefanzweifel/GitAutoCommitActionV4.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/stefanzweifel/GitAutoCommitActionV4.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.stefanzweifel -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -107,8 +108,8 @@ public data class GitAutoCommitActionV4( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("stefanzweifel", "git-auto-commit-action", - _customVersion ?: "v4") { +) : Action("stefanzweifel", "git-auto-commit-action", _customVersion + ?: "v4") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -137,8 +138,8 @@ public data class GitAutoCommitActionV4( public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * Value is "true", if the repository was dirty and file changes have been detected. Value * is "false", if no changes have been detected. @@ -149,7 +150,5 @@ public data class GitAutoCommitActionV4( * Full hash of the created commit. Only present if the "changes_detected" output is "true". */ public val commitHash: String = "steps.$stepId.outputs.commit_hash" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/subosito/FlutterActionV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/subosito/FlutterActionV2.kt index ed2a3ff12e..d5950525ba 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/subosito/FlutterActionV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/subosito/FlutterActionV2.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.subosito -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -53,8 +54,7 @@ public data class FlutterActionV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("subosito", "flutter-action", _customVersion ?: "v2") - { +) : Action("subosito", "flutter-action", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -101,8 +101,8 @@ public data class FlutterActionV2( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { public val cachePath: String = "steps.$stepId.outputs.CACHE-PATH" public val cacheKey: String = "steps.$stepId.outputs.CACHE-KEY" @@ -112,7 +112,5 @@ public data class FlutterActionV2( public val version: String = "steps.$stepId.outputs.VERSION" public val architecture: String = "steps.$stepId.outputs.ARCHITECTURE" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/supercharge/MongodbGithubActionV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/supercharge/MongodbGithubActionV1.kt index b8c5fd2255..66737d9d99 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/supercharge/MongodbGithubActionV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/supercharge/MongodbGithubActionV1.kt @@ -4,6 +4,7 @@ package it.krzeminski.githubactions.actions.supercharge import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Int import kotlin.String @@ -53,7 +54,7 @@ public data class MongodbGithubActionV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : Action("supercharge", "mongodb-github-action", _customVersion ?: "v1") { +) : Action("supercharge", "mongodb-github-action", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -66,4 +67,6 @@ public data class MongodbGithubActionV1( *_customInputs.toList().toTypedArray(), ).toTypedArray() ) + + public override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV1.kt index 9251b3db07..f9a9af05dc 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV1.kt @@ -5,7 +5,8 @@ package it.krzeminski.githubactions.actions.vampire -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.Deprecated @@ -111,7 +112,7 @@ public data class SetupWslV1( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("Vampire", "setup-wsl", _customVersion ?: "v1") { +) : Action("Vampire", "setup-wsl", _customVersion ?: "v1") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -154,8 +155,8 @@ public data class SetupWslV1( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The path to the wsl-shell wrapper that is generated by the current action invocation. * Even if the current action invocation does not actually generate the script, because @@ -173,7 +174,5 @@ public data class SetupWslV1( */ public val wslShellDistributionWrapperPath: String = "steps.$stepId.outputs.wsl-shell-distribution-wrapper-path" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV2.kt index 8364582fd5..45ccc9ce5b 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV2.kt @@ -3,7 +3,8 @@ // generator itself. package it.krzeminski.githubactions.actions.vampire -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.Action.Outputs import java.util.LinkedHashMap import kotlin.Boolean import kotlin.String @@ -104,7 +105,7 @@ public data class SetupWslV2( * version that the wrapper doesn't yet know about */ public val _customVersion: String? = null, -) : ActionWithOutputs("Vampire", "setup-wsl", _customVersion ?: "v2") { +) : Action("Vampire", "setup-wsl", _customVersion ?: "v2") { @Suppress("SpreadOperator") public override fun toYamlArguments(): LinkedHashMap = linkedMapOf( *listOfNotNull( @@ -147,8 +148,8 @@ public data class SetupWslV2( } public class Outputs( - private val stepId: String, - ) { + stepId: String, + ) : Action.Outputs(stepId) { /** * The path to the wsl-shell wrapper that is generated by the current action invocation. * Even if the current action invocation does not actually generate the script, because @@ -166,7 +167,5 @@ public data class SetupWslV2( */ public val wslShellDistributionWrapperPath: String = "steps.$stepId.outputs.wsl-shell-distribution-wrapper-path" - - public operator fun `get`(outputName: String): String = "steps.$stepId.outputs.$outputName" } } diff --git a/library/src/main/kotlin/it/krzeminski/githubactions/domain/Step.kt b/library/src/main/kotlin/it/krzeminski/githubactions/domain/Step.kt index 963b1948ac..484af87482 100644 --- a/library/src/main/kotlin/it/krzeminski/githubactions/domain/Step.kt +++ b/library/src/main/kotlin/it/krzeminski/githubactions/domain/Step.kt @@ -1,7 +1,7 @@ package it.krzeminski.githubactions.domain import it.krzeminski.githubactions.domain.actions.Action -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs +import it.krzeminski.githubactions.domain.actions.Action.Outputs import it.krzeminski.githubactions.dsl.HasCustomArguments import kotlinx.serialization.Contextual @@ -14,7 +14,7 @@ public sealed class Step( override val _customArguments: Map = emptyMap(), ) : HasCustomArguments -public interface WithOutputs { +public interface WithOutputs { public val outputs: T } @@ -39,14 +39,15 @@ public data class CommandStep( ) @Suppress("LongParameterList") -public open class ExternalActionStep( +public open class ExternalActionStep( override val id: String, public open val name: String? = null, - public open val action: Action, + public open val action: Action, override val env: LinkedHashMap = linkedMapOf(), override val condition: String? = null, override val continueOnError: Boolean? = null, override val timeoutMinutes: Int? = null, + override val outputs: OUTPUTS, override val _customArguments: Map = emptyMap(), ) : Step( id = id, @@ -55,26 +56,5 @@ public open class ExternalActionStep( timeoutMinutes = timeoutMinutes, env = env, _customArguments = _customArguments, -) - -public data class ExternalActionStepWithOutputs( - override val id: String, - override val name: String? = null, - override val action: ActionWithOutputs, - override val env: LinkedHashMap = linkedMapOf(), - override val condition: String? = null, - override val continueOnError: Boolean? = null, - override val timeoutMinutes: Int? = null, - override val outputs: T, - override val _customArguments: Map = emptyMap(), -) : ExternalActionStep( - name = name, - action = action, - id = id, - condition = condition, - continueOnError = continueOnError, - timeoutMinutes = timeoutMinutes, - env = env, - _customArguments = _customArguments, ), - WithOutputs + WithOutputs diff --git a/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/Action.kt b/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/Action.kt index 2ce59a06e0..122acb8214 100644 --- a/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/Action.kt +++ b/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/Action.kt @@ -1,12 +1,19 @@ package it.krzeminski.githubactions.domain.actions -public abstract class Action( +import it.krzeminski.githubactions.domain.actions.Action.Outputs + +public abstract class Action( public open val actionOwner: String, public open val actionName: String, public open val actionVersion: String, ) { public abstract fun toYamlArguments(): LinkedHashMap + public abstract fun buildOutputObject(stepId: String): OUTPUTS + + public open class Outputs(private val stepId: String) { + public operator fun get(outputName: String): String = "steps.$stepId.outputs.$outputName" + } } -internal val Action.fullName: String +internal val Action<*>.fullName: String get() = "$actionOwner/$actionName@$actionVersion" diff --git a/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/ActionWithOutputs.kt b/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/ActionWithOutputs.kt deleted file mode 100644 index 1fa8162b56..0000000000 --- a/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/ActionWithOutputs.kt +++ /dev/null @@ -1,13 +0,0 @@ -package it.krzeminski.githubactions.domain.actions - -public abstract class ActionWithOutputs( - override val actionOwner: String, - override val actionName: String, - override val actionVersion: String, -) : Action( - actionOwner = actionOwner, - actionName = actionName, - actionVersion = actionVersion, -) { - public abstract fun buildOutputObject(stepId: String): T -} diff --git a/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/CustomAction.kt b/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/CustomAction.kt index 035c4e1aea..aa7c525cd7 100644 --- a/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/CustomAction.kt +++ b/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/CustomAction.kt @@ -1,5 +1,7 @@ package it.krzeminski.githubactions.domain.actions +import it.krzeminski.githubactions.domain.actions.Action.Outputs + /** * CustomAction can be used when there is no type-safe wrapper action * and a quickly untyped wrapper is needed to fill the blank. @@ -11,14 +13,10 @@ public class CustomAction( override val actionName: String, override val actionVersion: String, public val inputs: Map, -) : ActionWithOutputs(actionOwner, actionName, actionVersion) { +) : Action(actionOwner, actionName, actionVersion) { override fun toYamlArguments(): LinkedHashMap = LinkedHashMap(inputs) - override fun buildOutputObject(stepId: String): Output = - Output(stepId) - - public class Output(private val stepId: String) { - public operator fun get(outputName: String): String = "steps.$stepId.outputs.$outputName" - } + override fun buildOutputObject(stepId: String): Outputs = + Outputs(stepId) } diff --git a/library/src/main/kotlin/it/krzeminski/githubactions/dsl/JobBuilder.kt b/library/src/main/kotlin/it/krzeminski/githubactions/dsl/JobBuilder.kt index b44f49a7f0..959f19ffc2 100644 --- a/library/src/main/kotlin/it/krzeminski/githubactions/dsl/JobBuilder.kt +++ b/library/src/main/kotlin/it/krzeminski/githubactions/dsl/JobBuilder.kt @@ -3,13 +3,11 @@ package it.krzeminski.githubactions.dsl import it.krzeminski.githubactions.domain.CommandStep import it.krzeminski.githubactions.domain.Concurrency import it.krzeminski.githubactions.domain.ExternalActionStep -import it.krzeminski.githubactions.domain.ExternalActionStepWithOutputs import it.krzeminski.githubactions.domain.Job import it.krzeminski.githubactions.domain.JobOutputs import it.krzeminski.githubactions.domain.RunnerType import it.krzeminski.githubactions.domain.Shell import it.krzeminski.githubactions.domain.actions.Action -import it.krzeminski.githubactions.domain.actions.ActionWithOutputs import kotlinx.serialization.Contextual @Suppress("LongParameterList") @@ -92,15 +90,15 @@ public class JobBuilder( return newStep } - public fun uses( - action: Action, + public fun uses( + action: Action, env: LinkedHashMap = linkedMapOf(), condition: String? = null, continueOnError: Boolean? = null, timeoutMinutes: Int? = null, @SuppressWarnings("FunctionParameterNaming") _customArguments: Map = mapOf(), - ): ExternalActionStep = uses( + ): ExternalActionStep = uses( name = null, action = action, env = env, @@ -110,60 +108,18 @@ public class JobBuilder( _customArguments = _customArguments, ) - public fun uses( + public fun uses( name: String? = null, - action: Action, + action: Action, env: LinkedHashMap = linkedMapOf(), condition: String? = null, continueOnError: Boolean? = null, timeoutMinutes: Int? = null, @SuppressWarnings("FunctionParameterNaming") _customArguments: Map = mapOf(), - ): ExternalActionStep { - val newStep = ExternalActionStep( - id = "step-${job.steps.size}", - name = name, - action = action, - env = env, - condition = condition, - continueOnError = continueOnError, - timeoutMinutes = timeoutMinutes, - _customArguments = _customArguments, - ) - job = job.copy(steps = job.steps + newStep) - return newStep - } - - public fun uses( - action: ActionWithOutputs, - env: LinkedHashMap = linkedMapOf(), - condition: String? = null, - continueOnError: Boolean? = null, - timeoutMinutes: Int? = null, - @SuppressWarnings("FunctionParameterNaming") - _customArguments: Map = mapOf(), - ): ExternalActionStepWithOutputs = uses( - name = null, - action = action, - env = env, - condition = condition, - continueOnError = continueOnError, - timeoutMinutes = timeoutMinutes, - _customArguments = _customArguments, - ) - - public fun uses( - name: String? = null, - action: ActionWithOutputs, - env: LinkedHashMap = linkedMapOf(), - condition: String? = null, - continueOnError: Boolean? = null, - timeoutMinutes: Int? = null, - @SuppressWarnings("FunctionParameterNaming") - _customArguments: Map = mapOf(), - ): ExternalActionStepWithOutputs { + ): ExternalActionStep { val stepId = "step-${job.steps.size}" - val newStep = ExternalActionStepWithOutputs( + val newStep = ExternalActionStep( id = stepId, name = name, action = action, diff --git a/library/src/main/kotlin/it/krzeminski/githubactions/yaml/StepsToYaml.kt b/library/src/main/kotlin/it/krzeminski/githubactions/yaml/StepsToYaml.kt index 1ff12868ed..0a2ea07386 100644 --- a/library/src/main/kotlin/it/krzeminski/githubactions/yaml/StepsToYaml.kt +++ b/library/src/main/kotlin/it/krzeminski/githubactions/yaml/StepsToYaml.kt @@ -18,12 +18,12 @@ internal fun List.stepsToYaml(): List> = private fun Step.toYaml() = when (this) { - is ExternalActionStep -> toYaml() + is ExternalActionStep<*> -> toYaml() is CommandStep -> toYaml() } @Suppress("SpreadOperator") -private fun ExternalActionStep.toYaml(): Map = +private fun ExternalActionStep<*>.toYaml(): Map = mapOfNotNullValues( "id" to id, "name" to name, diff --git a/library/src/test/kotlin/it/krzeminski/githubactions/yaml/StepsToYamlTest.kt b/library/src/test/kotlin/it/krzeminski/githubactions/yaml/StepsToYamlTest.kt index 0125e14ed0..223b30197a 100644 --- a/library/src/test/kotlin/it/krzeminski/githubactions/yaml/StepsToYamlTest.kt +++ b/library/src/test/kotlin/it/krzeminski/githubactions/yaml/StepsToYamlTest.kt @@ -8,6 +8,7 @@ import it.krzeminski.githubactions.actions.actions.UploadArtifactV3 import it.krzeminski.githubactions.domain.CommandStep import it.krzeminski.githubactions.domain.ExternalActionStep import it.krzeminski.githubactions.domain.Shell +import it.krzeminski.githubactions.domain.actions.Action import it.krzeminski.githubactions.domain.actions.CustomAction class StepsToYamlTest : DescribeSpec({ @@ -23,6 +24,7 @@ class StepsToYamlTest : DescribeSpec({ id = "someId", name = "Some external action", action = CheckoutV3(), + outputs = Action.Outputs("someId"), ), ) @@ -213,6 +215,7 @@ class StepsToYamlTest : DescribeSpec({ ExternalActionStep( id = "someId", action = CheckoutV3(), + outputs = Action.Outputs("someId"), ), ) @@ -245,6 +248,7 @@ class StepsToYamlTest : DescribeSpec({ """.trimIndent(), ), condition = "\${{ matrix.foo == 'bar' }}", + outputs = Action.Outputs("someId"), _customArguments = mapOf( "foo" to true, "null-string" to "null", @@ -299,6 +303,7 @@ class StepsToYamlTest : DescribeSpec({ "compiler" to "latexmk", ), ), + outputs = Action.Outputs("someId"), ), ) @@ -332,6 +337,7 @@ class StepsToYamlTest : DescribeSpec({ "answer" to "42", ), ), + outputs = Action.Outputs("someId"), ), ) @@ -362,6 +368,7 @@ class StepsToYamlTest : DescribeSpec({ path = listOf("path1", "path2"), _customVersion = "v2.3.4", ), + outputs = Action.Outputs("someId"), ), ) @@ -391,6 +398,7 @@ class StepsToYamlTest : DescribeSpec({ id = "someId", name = "Will be overridden", action = CheckoutV3(), + outputs = Action.Outputs("someId"), _customArguments = mapOf( "name" to "Overridden!", ), From 506b4bf67f1248f11df5741f4a73270e21685a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Krzemi=C5=84ski?= <3110813+krzema12@users.noreply.github.com> Date: Wed, 15 Feb 2023 23:09:07 +0100 Subject: [PATCH 15/25] [#651] docs: exclude generated wrappers from API docs (#685) They might be added in a separate instance of docs one day. --- library/build.gradle.kts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/build.gradle.kts b/library/build.gradle.kts index 0249e42fb6..ca9badbe3d 100644 --- a/library/build.gradle.kts +++ b/library/build.gradle.kts @@ -88,4 +88,11 @@ pitest { tasks.dokkaHtml { moduleName.set("GitHub Workflows Kt") + + dokkaSourceSets.configureEach { + perPackageOption { + matchingRegex.set("it.krzeminski.githubactions.actions.*") + suppress.set(true) + } + } } From ce3de96786f30863b52c60e36d74830ba8ea33c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Thu, 16 Feb 2023 13:54:05 +0100 Subject: [PATCH 16/25] docs: fix invalid action subclass examples (#687) --- docs/user-guide/using-actions.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/user-guide/using-actions.md b/docs/user-guide/using-actions.md index 5f2cc72690..f3cfc70f76 100644 --- a/docs/user-guide/using-actions.md +++ b/docs/user-guide/using-actions.md @@ -40,35 +40,35 @@ you have two ways to proceed. library, i.e. a class that takes some constructor arguments with types of your choice, and maps them to strings inside `toYamlArguments`. Use it to have better type-safety when using the wrapper. -Inherit from [`Action`](https://github.com/krzema12/github-workflows-kt/blob/main/library/src/main/kotlin/it/krzeminski/githubactions/actions/Action.kt) -in case of actions without outputs: +Inherit from [`Action`](https://github.com/krzema12/github-workflows-kt/blob/main/library/src/main/kotlin/it/krzeminski/githubactions/domain/actions/Action.kt) +and in case of actions without explicit outputs, use the `Actions.Outputs` class as type argument: ```kotlin class MyCoolActionV3( private val someArgument: String, -) : Action("acmecorp", "cool-action", "v3") { +) : Action("acmecorp", "cool-action", "v3") { override fun toYamlArguments() = linkedMapOf( "some-argument" to someArgument, ) + + override fun buildOutputObject(stepId: String) = Outputs(stepId) } ``` -or, in case actions with outputs, from [`ActionWithOutputs`](https://github.com/krzema12/github-workflows-kt/blob/main/library/src/main/kotlin/it/krzeminski/githubactions/actions/ActionWithOutputs.kt): +or, in case of actions with explicit outputs, create a subclass of `Action.Outputs` for the type argument: ```kotlin class MyCoolActionV3( private val someArgument: String, -) : ActionWithOutputs("acmecorp", "cool-action", "v3") { +) : Action("acmecorp", "cool-action", "v3") { override fun toYamlArguments() = linkedMapOf( "some-argument" to someArgument, ) - + override fun buildOutputObject(stepId: String) = Outputs(stepId) - - class Outputs(private val stepId: String) { + + class Outputs(stepId: String) : Action.Outputs(stepId) { public val coolOutput: String = "steps.$stepId.outputs.coolOutput" - - public operator fun `get`(outputName: String) = "steps.$stepId.outputs.$outputName" } } ``` From 36d5df5d38c4db83733101fc5ea37a2c4f16f76d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Thu, 16 Feb 2023 15:14:08 +0100 Subject: [PATCH 17/25] docs: remove trailing whitespaces in code snippets --- docs/user-guide/type-safe-expressions.md | 59 ++++++++++++------------ 1 file changed, 29 insertions(+), 30 deletions(-) diff --git a/docs/user-guide/type-safe-expressions.md b/docs/user-guide/type-safe-expressions.md index 1bdf3eabe9..d267f7d860 100644 --- a/docs/user-guide/type-safe-expressions.md +++ b/docs/user-guide/type-safe-expressions.md @@ -18,12 +18,12 @@ Here is an example ```kotlin run( name = "Environment variable and functions", - command = "echo \$GITHUB_ACTORS", - condition = "\${{invariably()}}", + command = "echo \$GITHUB_ACTORS", + condition = "\${{invariably()}}", ) -run( - name = "GitHubContext echo sha", - command = "echo commit: \${{ github.sha256 }} event: \${{ github.event.release.zip_url }}" +run( + name = "GitHubContext echo sha", + command = "echo commit: \${{ github.sha256 }} event: \${{ github.event.release.zip_url }}" ) ``` @@ -121,7 +121,7 @@ They are available directly in the IDE via the library's `Contexts.env` By using this feature in our snippet we would have avoided escaping the dollar and the typo: ```diff --command = "echo \$GITHUB_ACTORS", +-command = "echo \$GITHUB_ACTORS", +command = "echo " + Contexts.env.GITHUB_ACTOR, ``` @@ -138,19 +138,19 @@ You can create your own type-safe property by using the syntax For example: ```kotlin -val GREETING by Contexts.env -val FIRST_NAME by Contexts.env - -job( - env = linkedMapOf( - GREETING to "World", - ) -) { - run( - name = "Custom environment variable", - env = linkedMapOf( - FIRST_NAME to "Patrick", - ), +val GREETING by Contexts.env +val FIRST_NAME by Contexts.env + +job( + env = linkedMapOf( + GREETING to "World", + ) +) { + run( + name = "Custom environment variable", + env = linkedMapOf( + FIRST_NAME to "Patrick", + ), command = "echo $GREETING $FIRST_NAME" ) } @@ -171,19 +171,19 @@ You use them the same way as environment variables, but using `Contexts.secrets` For example: ```kotlin -val SUPER_SECRET by Contexts.secrets +val SUPER_SECRET by Contexts.secrets -val SECRET by Contexts.env +val SECRET by Contexts.env val TOKEN by Contexts.env -job(id = "job1", runsOn = RunnerType.UbuntuLatest) { - run( - name = "Encrypted secret", - env = linkedMapOf( - SECRET to expr { SUPER_SECRET }, - TOKEN to expr { secrets.GITHUB_TOKEN } - ), - command = "echo secret=$SECRET token=$TOKEN" +job(id = "job1", runsOn = RunnerType.UbuntuLatest) { + run( + name = "Encrypted secret", + env = linkedMapOf( + SECRET to expr { SUPER_SECRET }, + TOKEN to expr { secrets.GITHUB_TOKEN } + ), + command = "echo secret=$SECRET token=$TOKEN" ) } ``` @@ -198,4 +198,3 @@ There are more `github.event` payloads that we currently do not support: https:/ We feel what we have is a pretty good start, but if you need an additional feature, you can [create an issue](https://github.com/krzema12/github-workflows-kt/issues) Or maybe have a look how this type-safe feature is implemented in [it.krzeminski.githubactions.dsl.expressions](https://github.com/krzema12/github-workflows-kt/tree/main/library/src/main/kotlin/it/krzeminski/githubactions/dsl/expressions) and [submit a pull request 🙏🏻](https://github.com/krzema12/github-workflows-kt/pulls) - From 82224ff5eb7a0f5872a7721e3c3f3f466c741ee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Thu, 16 Feb 2023 15:15:39 +0100 Subject: [PATCH 18/25] docs: add code highlighting to secrets code snippet --- docs/user-guide/type-safe-expressions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user-guide/type-safe-expressions.md b/docs/user-guide/type-safe-expressions.md index d267f7d860..f9e308e40f 100644 --- a/docs/user-guide/type-safe-expressions.md +++ b/docs/user-guide/type-safe-expressions.md @@ -166,7 +166,7 @@ If you have sensitive information, you should store it as a GitHub secret: You use them the same way as environment variables, but using `Contexts.secrets` instead of `Contexts.env`: -> val SUPER_SECRET by Contexts.secrets +> `val SUPER_SECRET by Contexts.secrets` For example: From 053f4c1b7634be580db51bf82110b795476ef216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Thu, 16 Feb 2023 15:16:36 +0100 Subject: [PATCH 19/25] docs: replace deprecated action by current version --- docs/user-guide/compensating-librarys-missing-features.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/user-guide/compensating-librarys-missing-features.md b/docs/user-guide/compensating-librarys-missing-features.md index ecf20c3a2e..abb29f2e7c 100644 --- a/docs/user-guide/compensating-librarys-missing-features.md +++ b/docs/user-guide/compensating-librarys-missing-features.md @@ -35,7 +35,7 @@ workflow( Each action wrapper has an extra constructor parameter - `_customInputs` - which is a map from `String` to `String`: ```kotlin -UploadArtifactV2( +UploadArtifactV3( //... _customInputs = mapOf( "path" to "override-path-value", @@ -53,9 +53,9 @@ Each action wrapper has an extra constructor parameter - `_customVersion` - whic version: ```kotlin -UploadArtifactV2( +UploadArtifactV3( //... - _customVersion = "v3" + _customVersion = "v4" ) ``` From 5baa902c9622c85b9cb6b1dc124ba1289456cc73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Thu, 16 Feb 2023 19:39:09 +0100 Subject: [PATCH 20/25] docs: fix ktlint findings in snippets --- .../compensating-librarys-missing-features.md | 12 ++++++------ docs/user-guide/job-outputs.md | 2 +- docs/user-guide/type-safe-expressions.md | 10 +++++----- docs/user-guide/using-actions.md | 8 +++++--- 4 files changed, 17 insertions(+), 15 deletions(-) diff --git a/docs/user-guide/compensating-librarys-missing-features.md b/docs/user-guide/compensating-librarys-missing-features.md index abb29f2e7c..31622ced66 100644 --- a/docs/user-guide/compensating-librarys-missing-features.md +++ b/docs/user-guide/compensating-librarys-missing-features.md @@ -17,7 +17,7 @@ For example: ```kotlin workflow( - //... + // ... _customArguments = mapOf( "dry-run" to true, "some-string-value" to "foobar", @@ -25,7 +25,7 @@ workflow( "concurrency" to mapOf( "group" to expr("github.ref"), "cancel-in-progress" to "true", - ) + ), ), ) ``` @@ -36,11 +36,11 @@ Each action wrapper has an extra constructor parameter - `_customInputs` - which ```kotlin UploadArtifactV3( - //... + // ... _customInputs = mapOf( "path" to "override-path-value", "answer" to "42", - ) + ), ) ``` @@ -54,8 +54,8 @@ version: ```kotlin UploadArtifactV3( - //... - _customVersion = "v4" + // ... + _customVersion = "v4", ) ``` diff --git a/docs/user-guide/job-outputs.md b/docs/user-guide/job-outputs.md index f1cc46ba3b..3f878df44f 100644 --- a/docs/user-guide/job-outputs.md +++ b/docs/user-guide/job-outputs.md @@ -12,7 +12,7 @@ val myJob = job( outputs = object : JobOutputs() { var myOutput by output() var anotherOutput by output() - } + }, ) { ... } ``` diff --git a/docs/user-guide/type-safe-expressions.md b/docs/user-guide/type-safe-expressions.md index f9e308e40f..60df1b6acb 100644 --- a/docs/user-guide/type-safe-expressions.md +++ b/docs/user-guide/type-safe-expressions.md @@ -23,7 +23,7 @@ run( ) run( name = "GitHubContext echo sha", - command = "echo commit: \${{ github.sha256 }} event: \${{ github.event.release.zip_url }}" + command = "echo commit: \${{ github.sha256 }} event: \${{ github.event.release.zip_url }}", ) ``` @@ -144,14 +144,14 @@ val FIRST_NAME by Contexts.env job( env = linkedMapOf( GREETING to "World", - ) + ), ) { run( name = "Custom environment variable", env = linkedMapOf( FIRST_NAME to "Patrick", ), - command = "echo $GREETING $FIRST_NAME" + command = "echo $GREETING $FIRST_NAME", ) } ``` @@ -181,9 +181,9 @@ job(id = "job1", runsOn = RunnerType.UbuntuLatest) { name = "Encrypted secret", env = linkedMapOf( SECRET to expr { SUPER_SECRET }, - TOKEN to expr { secrets.GITHUB_TOKEN } + TOKEN to expr { secrets.GITHUB_TOKEN }, ), - command = "echo secret=$SECRET token=$TOKEN" + command = "echo secret=$SECRET token=$TOKEN", ) } ``` diff --git a/docs/user-guide/using-actions.md b/docs/user-guide/using-actions.md index f3cfc70f76..684dac7649 100644 --- a/docs/user-guide/using-actions.md +++ b/docs/user-guide/using-actions.md @@ -76,8 +76,10 @@ class MyCoolActionV3( Once you've got your action, it's now as simple as using it like this: ```kotlin -uses(name = "FooBar", - action = MyCoolActionV3(someArgument = "foobar")) +uses( + name = "FooBar", + action = MyCoolActionV3(someArgument = "foobar"), +) ``` ### Untyped wrapper @@ -97,7 +99,7 @@ val customAction = CustomAction( inputs = linkedMapOf( "root_file" to "report.tex", "compiler" to "latexmk", - ) + ), ) ``` From 62331641bd1f592ace21642b2e59ad7b9457f1aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Thu, 16 Feb 2023 15:18:23 +0100 Subject: [PATCH 21/25] docs: extract snippets from documentation to tested files --- .../compensating-librarys-missing-features.md | 29 ++--- docs/user-guide/getting_started.md | 25 +---- docs/user-guide/job-outputs.md | 27 +---- docs/user-guide/type-safe-expressions.md | 44 +------- docs/user-guide/using-actions.md | 50 ++------- library/build.gradle.kts | 4 + ...ensatingLibrarysMissingFeaturesSnippets.kt | 69 ++++++++++++ .../docsnippets/GettingStartedSnippets.kt | 45 ++++++++ .../docsnippets/JobOutputsSnippets.kt | 67 ++++++++++++ .../TypeSafeExpressionsSnippets.kt | 97 +++++++++++++++++ .../docsnippets/UsingActionsSnippets.kt | 101 ++++++++++++++++++ mkdocs.yml | 4 + 12 files changed, 410 insertions(+), 152 deletions(-) create mode 100644 library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/CompensatingLibrarysMissingFeaturesSnippets.kt create mode 100644 library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/GettingStartedSnippets.kt create mode 100644 library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/JobOutputsSnippets.kt create mode 100644 library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/TypeSafeExpressionsSnippets.kt create mode 100644 library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/UsingActionsSnippets.kt diff --git a/docs/user-guide/compensating-librarys-missing-features.md b/docs/user-guide/compensating-librarys-missing-features.md index 31622ced66..3f817013e7 100644 --- a/docs/user-guide/compensating-librarys-missing-features.md +++ b/docs/user-guide/compensating-librarys-missing-features.md @@ -16,18 +16,8 @@ needed, especially using basic types like booleans, strings or integers, and fur For example: ```kotlin -workflow( - // ... - _customArguments = mapOf( - "dry-run" to true, - "some-string-value" to "foobar", - "written-by" to listOf("Alice", "Bob"), - "concurrency" to mapOf( - "group" to expr("github.ref"), - "cancel-in-progress" to "true", - ), - ), -) +--8<-- "CompensatingLibrarysMissingFeaturesSnippets.kt:customArguments1" +--8<-- "CompensatingLibrarysMissingFeaturesSnippets.kt:customArguments2" ``` ## Action's inputs @@ -35,13 +25,8 @@ workflow( Each action wrapper has an extra constructor parameter - `_customInputs` - which is a map from `String` to `String`: ```kotlin -UploadArtifactV3( - // ... - _customInputs = mapOf( - "path" to "override-path-value", - "answer" to "42", - ), -) +--8<-- "CompensatingLibrarysMissingFeaturesSnippets.kt:customInputs1" +--8<-- "CompensatingLibrarysMissingFeaturesSnippets.kt:customInputs2" ``` You can use it to set inputs that the wrapper doesn't know about, or to set any custom value if the wrapper's typing is @@ -53,10 +38,8 @@ Each action wrapper has an extra constructor parameter - `_customVersion` - whic version: ```kotlin -UploadArtifactV3( - // ... - _customVersion = "v4", -) +--8<-- "CompensatingLibrarysMissingFeaturesSnippets.kt:customVersion1" +--8<-- "CompensatingLibrarysMissingFeaturesSnippets.kt:customVersion2" ``` It's useful e.g. when the wrapper doesn't keep up with action's versions and the API is fairly compatible, or if you diff --git a/docs/user-guide/getting_started.md b/docs/user-guide/getting_started.md index d5159ebaa2..d7b1307ae5 100644 --- a/docs/user-guide/getting_started.md +++ b/docs/user-guide/getting_started.md @@ -24,28 +24,9 @@ names with your own. GitHub Actions workflows. 3. Put this content into the previously created file and save it: ```kotlin - #!/usr/bin/env kotlin - - @file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:[[ version ]]") - - import it.krzeminski.githubactions.actions.actions.CheckoutV3 - import it.krzeminski.githubactions.domain.RunnerType.UbuntuLatest - import it.krzeminski.githubactions.domain.triggers.Push - import it.krzeminski.githubactions.dsl.workflow - import it.krzeminski.githubactions.yaml.toYaml - - val workflow = workflow( - name = "Test workflow", - on = listOf(Push()), - sourceFile = __FILE__.toPath(), - ) { - job(id = "test_job", runsOn = UbuntuLatest) { - uses(name = "Check out", action = CheckoutV3()) - run(name = "Print greeting", command = "echo 'Hello world!'") - } - } - - println(workflow.toYaml()) + --8<-- "GettingStartedSnippets.kt:gettingStarted1" + --8<-- "GettingStartedSnippets.kt:gettingStarted2" + --8<-- "GettingStartedSnippets.kt:gettingStarted3" ``` Explanation: first, we create a workflow with the DSL provided by this library. The reason it needs source file path is to be able to generate consistency checks, to ensure that both source and target files are in sync. diff --git a/docs/user-guide/job-outputs.md b/docs/user-guide/job-outputs.md index 3f878df44f..129b1f5e01 100644 --- a/docs/user-guide/job-outputs.md +++ b/docs/user-guide/job-outputs.md @@ -6,37 +6,18 @@ are). First, define `outputs` parameter in `job` function, inheriting from `JobOutputs`: ```kotlin hl_lines="4-7" -val myJob = job( - id = "my_job", - runsOn = RunnerType.UbuntuLatest, - outputs = object : JobOutputs() { - var myOutput by output() - var anotherOutput by output() - }, -) { ... } +--8<-- "JobOutputsSnippets.kt:defineJobOutputs1" +--8<-- "JobOutputsSnippets.kt:defineJobOutputs2" ``` To set an output from within the job, use `jobOutputs`, and then an appropriate object field: ```kotlin -jobOutputs.myOutput = someStep.outputs.someStepOutput -jobOutputs.anotherOutput = someStep.outputs["custom-output"] +--8<-- "JobOutputsSnippets.kt:setJobOutputs" ``` and then use job's output from another job this way: ```kotlin hl_lines="9-10" -job( - id = "use_output", - runsOn = RunnerType.UbuntuLatest, - needs = listOf(myJob), -) { - run( - name = "Use outputs", - command = """ - echo ${expr { myJob.outputs.myOutput }} - echo ${expr { myJob.outputs.anotherOutput }} - """.trimIndent(), - ) -} +--8<-- "JobOutputsSnippets.kt:useJobOutputs" ``` diff --git a/docs/user-guide/type-safe-expressions.md b/docs/user-guide/type-safe-expressions.md index 60df1b6acb..20e98817de 100644 --- a/docs/user-guide/type-safe-expressions.md +++ b/docs/user-guide/type-safe-expressions.md @@ -16,15 +16,7 @@ They include: Here is an example ```kotlin -run( - name = "Environment variable and functions", - command = "echo \$GITHUB_ACTORS", - condition = "\${{invariably()}}", -) -run( - name = "GitHubContext echo sha", - command = "echo commit: \${{ github.sha256 }} event: \${{ github.event.release.zip_url }}", -) +--8<-- "TypeSafeExpressionsSnippets.kt:illExample" ``` Unfortunately, it is easy to get those expressions wrong. @@ -138,22 +130,8 @@ You can create your own type-safe property by using the syntax For example: ```kotlin -val GREETING by Contexts.env -val FIRST_NAME by Contexts.env - -job( - env = linkedMapOf( - GREETING to "World", - ), -) { - run( - name = "Custom environment variable", - env = linkedMapOf( - FIRST_NAME to "Patrick", - ), - command = "echo $GREETING $FIRST_NAME", - ) -} +--8<-- "TypeSafeExpressionsSnippets.kt:customEnvironmentVariables1" +--8<-- "TypeSafeExpressionsSnippets.kt:customEnvironmentVariables2" ``` Reference: https://docs.github.com/en/actions/learn-github-actions/environment-variables#about-environment-variables @@ -171,21 +149,7 @@ You use them the same way as environment variables, but using `Contexts.secrets` For example: ```kotlin -val SUPER_SECRET by Contexts.secrets - -val SECRET by Contexts.env -val TOKEN by Contexts.env - -job(id = "job1", runsOn = RunnerType.UbuntuLatest) { - run( - name = "Encrypted secret", - env = linkedMapOf( - SECRET to expr { SUPER_SECRET }, - TOKEN to expr { secrets.GITHUB_TOKEN }, - ), - command = "echo secret=$SECRET token=$TOKEN", - ) -} +--8<-- "TypeSafeExpressionsSnippets.kt:secrets" ``` diff --git a/docs/user-guide/using-actions.md b/docs/user-guide/using-actions.md index 684dac7649..cd68c4a3aa 100644 --- a/docs/user-guide/using-actions.md +++ b/docs/user-guide/using-actions.md @@ -44,42 +44,20 @@ Inherit from [`Action`](https://github.com/krzema12/github-workflows-kt/blob/mai and in case of actions without explicit outputs, use the `Actions.Outputs` class as type argument: ```kotlin -class MyCoolActionV3( - private val someArgument: String, -) : Action("acmecorp", "cool-action", "v3") { - override fun toYamlArguments() = linkedMapOf( - "some-argument" to someArgument, - ) - - override fun buildOutputObject(stepId: String) = Outputs(stepId) -} +--8<-- "UsingActionsSnippets.kt:actionWithoutOutputs" ``` or, in case of actions with explicit outputs, create a subclass of `Action.Outputs` for the type argument: ```kotlin -class MyCoolActionV3( - private val someArgument: String, -) : Action("acmecorp", "cool-action", "v3") { - override fun toYamlArguments() = linkedMapOf( - "some-argument" to someArgument, - ) - - override fun buildOutputObject(stepId: String) = Outputs(stepId) - - class Outputs(stepId: String) : Action.Outputs(stepId) { - public val coolOutput: String = "steps.$stepId.outputs.coolOutput" - } -} +--8<-- "UsingActionsSnippets.kt:actionWithOutputs1" +--8<-- "UsingActionsSnippets.kt:actionWithOutputs2" ``` Once you've got your action, it's now as simple as using it like this: ```kotlin -uses( - name = "FooBar", - action = MyCoolActionV3(someArgument = "foobar"), -) +--8<-- "UsingActionsSnippets.kt:using" ``` ### Untyped wrapper @@ -92,27 +70,11 @@ uses( Use a [`CustomAction`](https://github.com/krzema12/github-workflows-kt/blob/main/library/src/main/kotlin/it/krzeminski/githubactions/actions/CustomAction.kt): ```kotlin -val customAction = CustomAction( - actionOwner = "xu-cheng", - actionName = "latex-action", - actionVersion = "v2", - inputs = linkedMapOf( - "root_file" to "report.tex", - "compiler" to "latexmk", - ), -) +--8<-- "UsingActionsSnippets.kt:customAction" ``` If your custom action has outputs, you can access them, albeit in a type-unsafe manner: ```kotlin -job("test_job", runsOn = RunnerType.UbuntuLatest) { - val customActionStep = uses( - name = "Some step with output", - action = customAction, - ) - - // use your outputs: - println(expr(customActionStep.outputs["custom-output"])) -} +--8<-- "UsingActionsSnippets.kt:customActionOutputs" ``` diff --git a/library/build.gradle.kts b/library/build.gradle.kts index ca9badbe3d..35d5e53f22 100644 --- a/library/build.gradle.kts +++ b/library/build.gradle.kts @@ -71,6 +71,10 @@ val validateDuplicatedVersion by tasks.creating { project.rootDir.resolve("script-generator/src/main/kotlin/it/krzeminski/githubactions/scriptgenerator/Version.kt").readText() .contains("val LIBRARY_VERSION = \"$version\"") ) { "Library version stated in script-generator/.../Version.kt should be equal to $version!" } + require( + project.file("src/test/kotlin/it/krzeminski/githubactions/docsnippets/GettingStartedSnippets.kt").readText() + .contains("\"it.krzeminski:github-actions-kotlin-dsl:$version\"") + ) { "Library version stated in library/src/test/.../GettingStarted.kt should be equal to $version!" } } } diff --git a/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/CompensatingLibrarysMissingFeaturesSnippets.kt b/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/CompensatingLibrarysMissingFeaturesSnippets.kt new file mode 100644 index 0000000000..ddf0122eb1 --- /dev/null +++ b/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/CompensatingLibrarysMissingFeaturesSnippets.kt @@ -0,0 +1,69 @@ +package it.krzeminski.githubactions.docsnippets + +import io.kotest.core.spec.style.FunSpec +import it.krzeminski.githubactions.actions.actions.UploadArtifactV3 +import it.krzeminski.githubactions.domain.RunnerType.UbuntuLatest +import it.krzeminski.githubactions.domain.triggers.Push +import it.krzeminski.githubactions.dsl.expressions.expr +import it.krzeminski.githubactions.dsl.workflow + +class CompensatingLibrarysMissingFeaturesSnippets : FunSpec({ + test("customArguments") { +/* ktlint-disable indent */ +// --8<-- [start:customArguments1] +workflow( +// --8<-- [end:customArguments1] + name = "customArguments", + on = listOf(Push()), +// --8<-- [start:customArguments2] + // ... + _customArguments = mapOf( + "dry-run" to true, + "some-string-value" to "foobar", + "written-by" to listOf("Alice", "Bob"), + "concurrency" to mapOf( + "group" to expr("github.ref"), + "cancel-in-progress" to "true", + ), + ), +) +// --8<-- [end:customArguments2] +{ + job(id = "test_job", runsOn = UbuntuLatest) { + run(command = "echo 'Hello world!'") + } +} +/* ktlint-enable indent */ + } + + test("customInputs") { +/* ktlint-disable indent */ +// --8<-- [start:customInputs1] +UploadArtifactV3( +// --8<-- [end:customInputs1] + path = emptyList(), +// --8<-- [start:customInputs2] + // ... + _customInputs = mapOf( + "path" to "override-path-value", + "answer" to "42", + ), +) +// --8<-- [end:customInputs2] +/* ktlint-enable indent */ + } + + test("customVersion") { +/* ktlint-disable indent */ +// --8<-- [start:customVersion1] +UploadArtifactV3( +// --8<-- [end:customVersion1] + path = emptyList(), +// --8<-- [start:customVersion2] + // ... + _customVersion = "v4", +) +// --8<-- [end:customVersion2] +/* ktlint-enable indent */ + } +},) diff --git a/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/GettingStartedSnippets.kt b/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/GettingStartedSnippets.kt new file mode 100644 index 0000000000..298acd6371 --- /dev/null +++ b/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/GettingStartedSnippets.kt @@ -0,0 +1,45 @@ +package it.krzeminski.githubactions.docsnippets + +/* ktlint-disable import-ordering */ +import io.kotest.core.spec.style.FunSpec +// --8<-- [start:gettingStarted2] +import it.krzeminski.githubactions.actions.actions.CheckoutV3 +import it.krzeminski.githubactions.domain.RunnerType.UbuntuLatest +import it.krzeminski.githubactions.domain.triggers.Push +import it.krzeminski.githubactions.dsl.workflow +import it.krzeminski.githubactions.yaml.toYaml +// --8<-- [end:gettingStarted2] +import java.io.File +/* ktlint-enable import-ordering */ + +class GettingStartedSnippets : FunSpec({ + test("gettingStarted") { +/* ktlint-disable indent */ +/* +// --8<-- [start:gettingStarted1] +#!/usr/bin/env kotlin + +@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.36.0") + +// --8<-- [end:gettingStarted1] +*/ +@Suppress("VariableNaming") +val __FILE__ = File("") +// --8<-- [start:gettingStarted3] + +val workflow = workflow( + name = "Test workflow", + on = listOf(Push()), + sourceFile = __FILE__.toPath(), +) { + job(id = "test_job", runsOn = UbuntuLatest) { + uses(name = "Check out", action = CheckoutV3()) + run(name = "Print greeting", command = "echo 'Hello world!'") + } +} + +println(workflow.toYaml()) +// --8<-- [end:gettingStarted3] +/* ktlint-enable indent */ + } +},) diff --git a/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/JobOutputsSnippets.kt b/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/JobOutputsSnippets.kt new file mode 100644 index 0000000000..61a3faf22e --- /dev/null +++ b/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/JobOutputsSnippets.kt @@ -0,0 +1,67 @@ +package it.krzeminski.githubactions.docsnippets + +import io.kotest.core.spec.style.FunSpec +import it.krzeminski.githubactions.domain.JobOutputs +import it.krzeminski.githubactions.domain.RunnerType +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.triggers.Push +import it.krzeminski.githubactions.dsl.expressions.expr +import it.krzeminski.githubactions.dsl.workflow +import java.util.LinkedHashMap + +class JobOutputsSnippets : FunSpec({ + test("jobOutputs") { + workflow( + name = "Test workflow", + on = listOf(Push()), + ) { +/* ktlint-disable indent */ +// --8<-- [start:defineJobOutputs1] +val myJob = job( + id = "my_job", + runsOn = RunnerType.UbuntuLatest, + outputs = object : JobOutputs() { + var myOutput by output() + var anotherOutput by output() + }, +// --8<-- [end:defineJobOutputs1] +/* +// --8<-- [start:defineJobOutputs2] +) { ... } +// --8<-- [end:defineJobOutputs2] +*/ +) { + class DocTest : Action("doc", "test", "v0") { + override fun toYamlArguments(): LinkedHashMap = linkedMapOf() + override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) + inner class Outputs(stepId: String) : Action.Outputs(stepId) { + val someStepOutput: String = "" + } + } + val someStep = uses(DocTest()) + +// --8<-- [start:setJobOutputs] +jobOutputs.myOutput = someStep.outputs.someStepOutput +jobOutputs.anotherOutput = someStep.outputs["custom-output"] +// --8<-- [end:setJobOutputs] +} + +// --8<-- [start:useJobOutputs] +job( + id = "use_output", + runsOn = RunnerType.UbuntuLatest, + needs = listOf(myJob), +) { + run( + name = "Use outputs", + command = """ + echo ${expr { myJob.outputs.myOutput }} + echo ${expr { myJob.outputs.anotherOutput }} + """.trimIndent(), + ) +} +// --8<-- [end:useJobOutputs] +/* ktlint-enable indent */ + } + } +},) diff --git a/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/TypeSafeExpressionsSnippets.kt b/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/TypeSafeExpressionsSnippets.kt new file mode 100644 index 0000000000..0b94cabea7 --- /dev/null +++ b/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/TypeSafeExpressionsSnippets.kt @@ -0,0 +1,97 @@ +@file:Suppress("VariableNaming") + +package it.krzeminski.githubactions.docsnippets + +import io.kotest.core.spec.style.FunSpec +import it.krzeminski.githubactions.domain.RunnerType +import it.krzeminski.githubactions.domain.triggers.Push +import it.krzeminski.githubactions.dsl.expressions.Contexts +import it.krzeminski.githubactions.dsl.expressions.expr +import it.krzeminski.githubactions.dsl.workflow + +class TypeSafeExpressionsSnippets : FunSpec({ + test("illExample") { + workflow( + name = "Test workflow", + on = listOf(Push()), + ) { + job( + id = "test_job", + runsOn = RunnerType.UbuntuLatest, + ) { +/* ktlint-disable indent */ +// --8<-- [start:illExample] +run( + name = "Environment variable and functions", + command = "echo \$GITHUB_ACTORS", + condition = "\${{invariably()}}", +) +run( + name = "GitHubContext echo sha", + command = "echo commit: \${{ github.sha256 }} event: \${{ github.event.release.zip_url }}", +) +// --8<-- [end:illExample] +/* ktlint-enable indent */ + } + } + } + + test("customEnvironmentVariables") { + workflow( + name = "Test workflow", + on = listOf(Push()), + ) { +/* ktlint-disable indent */ +// --8<-- [start:customEnvironmentVariables1] +val GREETING by Contexts.env +val FIRST_NAME by Contexts.env + +job( +// --8<-- [end:customEnvironmentVariables1] + id = "job0", + runsOn = RunnerType.UbuntuLatest, +// --8<-- [start:customEnvironmentVariables2] + env = linkedMapOf( + GREETING to "World", + ), +) { + run( + name = "Custom environment variable", + env = linkedMapOf( + FIRST_NAME to "Patrick", + ), + command = "echo $GREETING $FIRST_NAME", + ) +} +// --8<-- [end:customEnvironmentVariables2] +/* ktlint-enable indent */ + } + } + + test("secrets") { + workflow( + name = "Test workflow", + on = listOf(Push()), + ) { +/* ktlint-disable indent */ +// --8<-- [start:secrets] +val SUPER_SECRET by Contexts.secrets + +val SECRET by Contexts.env +val TOKEN by Contexts.env + +job(id = "job1", runsOn = RunnerType.UbuntuLatest) { + run( + name = "Encrypted secret", + env = linkedMapOf( + SECRET to expr { SUPER_SECRET }, + TOKEN to expr { secrets.GITHUB_TOKEN }, + ), + command = "echo secret=$SECRET token=$TOKEN", + ) +} +// --8<-- [end:secrets] +/* ktlint-enable indent */ + } + } +},) diff --git a/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/UsingActionsSnippets.kt b/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/UsingActionsSnippets.kt new file mode 100644 index 0000000000..6f28a73b7e --- /dev/null +++ b/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/UsingActionsSnippets.kt @@ -0,0 +1,101 @@ +package it.krzeminski.githubactions.docsnippets + +import io.kotest.core.spec.style.FunSpec +import it.krzeminski.githubactions.domain.RunnerType +import it.krzeminski.githubactions.domain.actions.Action +import it.krzeminski.githubactions.domain.actions.CustomAction +import it.krzeminski.githubactions.domain.triggers.Push +import it.krzeminski.githubactions.dsl.expressions.expr +import it.krzeminski.githubactions.dsl.workflow + +class UsingActionsSnippets : FunSpec({ + test("actionWithoutOutputs") { +/* ktlint-disable indent */ +// --8<-- [start:actionWithoutOutputs] +class MyCoolActionV3( + private val someArgument: String, +) : Action("acmecorp", "cool-action", "v3") { + override fun toYamlArguments() = linkedMapOf( + "some-argument" to someArgument, + ) + + override fun buildOutputObject(stepId: String) = Outputs(stepId) +} +// --8<-- [end:actionWithoutOutputs] +/* ktlint-enable indent */ + } + + test("actionWithOutputs") { +/* ktlint-disable indent */ +// --8<-- [start:actionWithOutputs1] +class MyCoolActionV3( + private val someArgument: String, +) : Action("acmecorp", "cool-action", "v3") { + override fun toYamlArguments() = linkedMapOf( + "some-argument" to someArgument, + ) + + override fun buildOutputObject(stepId: String) = Outputs(stepId) + +// --8<-- [end:actionWithOutputs1] + inner +// --8<-- [start:actionWithOutputs2] + class Outputs(stepId: String) : Action.Outputs(stepId) { + public val coolOutput: String = "steps.$stepId.outputs.coolOutput" + } +} +// --8<-- [end:actionWithOutputs2] +/* ktlint-enable indent */ + + workflow( + name = "Test workflow", + on = listOf(Push()), + ) { + job(id = "test-job", runsOn = RunnerType.UbuntuLatest) { +/* ktlint-disable indent */ +// --8<-- [start:using] +uses( + name = "FooBar", + action = MyCoolActionV3(someArgument = "foobar"), +) +// --8<-- [end:using] +/* ktlint-enable indent */ + } + } + } + + test("customAction") { +/* ktlint-disable indent */ +// --8<-- [start:customAction] +val customAction = CustomAction( + actionOwner = "xu-cheng", + actionName = "latex-action", + actionVersion = "v2", + inputs = linkedMapOf( + "root_file" to "report.tex", + "compiler" to "latexmk", + ), +) +// --8<-- [end:customAction] +/* ktlint-enable indent */ + + workflow( + name = "Test workflow", + on = listOf(Push()), + ) { +/* ktlint-disable indent */ +// --8<-- [start:customActionOutputs] +job("test_job", runsOn = RunnerType.UbuntuLatest) { + val customActionStep = uses( + name = "Some step with output", + action = customAction, + ) + + // use your outputs: + println(expr(customActionStep.outputs["custom-output"])) +} +// --8<-- [end:customActionOutputs] +/* ktlint-enable indent */ + } + } +},) diff --git a/mkdocs.yml b/mkdocs.yml index bc44658830..8cb5639ad4 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -26,6 +26,10 @@ markdown_extensions: - pymdownx.magiclink - pymdownx.inlinehilite - pymdownx.superfences + - pymdownx.snippets: + base_path: + - library/src/test/kotlin/it/krzeminski/githubactions/docsnippets + check_paths: True - admonition plugins: From 0912c7794cbb04fcfca37af68a91c70fdc85dbee Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 16 Feb 2023 21:38:00 +0000 Subject: [PATCH 22/25] chore(deps): update plugin org.jetbrains.kotlinx.binary-compatibility-validator to v0.13.0 --- library/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/build.gradle.kts b/library/build.gradle.kts index 35d5e53f22..1db7294723 100644 --- a/library/build.gradle.kts +++ b/library/build.gradle.kts @@ -10,7 +10,7 @@ plugins { // Code quality. id("io.gitlab.arturbosch.detekt") id("info.solidsoft.pitest") version "1.9.11" - id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.12.0" + id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.13.0" id("org.jetbrains.dokka") version "1.7.20" } From 92979252c4aee20bf144ec67a513da0469f81e58 Mon Sep 17 00:00:00 2001 From: Piotr Krzeminski Date: Fri, 17 Feb 2023 09:22:36 +0100 Subject: [PATCH 23/25] feat(actions): update Azure/webapps-deploy@v2 --- actions/Azure/webapps-deploy/v2/commit-hash.txt | 2 +- .../githubactions/actions/azure/WebappsDeployV2.kt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/actions/Azure/webapps-deploy/v2/commit-hash.txt b/actions/Azure/webapps-deploy/v2/commit-hash.txt index a63bccef34..e0f35dd23b 100644 --- a/actions/Azure/webapps-deploy/v2/commit-hash.txt +++ b/actions/Azure/webapps-deploy/v2/commit-hash.txt @@ -1 +1 @@ -0b651ed7546ecfc75024011f76944cb9b381ef1e \ No newline at end of file +2087f42f7c9306a8d6d45d733e45d2048a9a735a \ No newline at end of file diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/WebappsDeployV2.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/WebappsDeployV2.kt index f8c4167375..05b81dd717 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/WebappsDeployV2.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/azure/WebappsDeployV2.kt @@ -55,6 +55,10 @@ public data class WebappsDeployV2( * Enter the start up command. For ex. dotnet run or dotnet run */ public val startupCommand: String? = null, + /** + * Enter the resource group name of the web app + */ + public val resourceGroupName: String? = null, /** * Type-unsafe map where you can put any inputs that are not yet supported by the wrapper */ @@ -75,6 +79,7 @@ public data class WebappsDeployV2( "images" to images.joinToString("\n"), configurationFile?.let { "configuration-file" to it }, startupCommand?.let { "startup-command" to it }, + resourceGroupName?.let { "resource-group-name" to it }, *_customInputs.toList().toTypedArray(), ).toTypedArray() ) From b8e0e146ba4f8c13e93fcbf00cdfd9987524fcdd Mon Sep 17 00:00:00 2001 From: Piotr Krzeminski Date: Fri, 17 Feb 2023 09:23:07 +0100 Subject: [PATCH 24/25] feat(actions): update mi-kas/kover-report@v1 --- .../mi-kas/kover-report/v1/commit-hash.txt | 2 +- .../actions/mikas/KoverReportV1.kt | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/actions/mi-kas/kover-report/v1/commit-hash.txt b/actions/mi-kas/kover-report/v1/commit-hash.txt index 970f7f3d44..36cc97b4d3 100644 --- a/actions/mi-kas/kover-report/v1/commit-hash.txt +++ b/actions/mi-kas/kover-report/v1/commit-hash.txt @@ -1 +1 @@ -357044c2450966b582a4e82c67ee51ee0558d744 \ No newline at end of file +e211fa9235b1d5399bd87d21c8c4760177300367 \ No newline at end of file diff --git a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/mikas/KoverReportV1.kt b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/mikas/KoverReportV1.kt index a716f184fd..9380f3a927 100644 --- a/library/src/gen/kotlin/it/krzeminski/githubactions/actions/mikas/KoverReportV1.kt +++ b/library/src/gen/kotlin/it/krzeminski/githubactions/actions/mikas/KoverReportV1.kt @@ -46,6 +46,10 @@ public data class KoverReportV1( * The minimum code coverage that is required to pass for changed files */ public val minCoverageChangedFiles: Int? = null, + /** + * Report counter type (`INSTRUCTION``, `LINE` or `BRANCH`) to calculate coverage metrics. + */ + public val coverageCounterType: KoverReportV1.CoverageCounterType? = null, /** * Type-unsafe map where you can put any inputs that are not yet supported by the wrapper */ @@ -65,12 +69,27 @@ public data class KoverReportV1( updateComment?.let { "update-comment" to it.toString() }, minCoverageOverall?.let { "min-coverage-overall" to it.toString() }, minCoverageChangedFiles?.let { "min-coverage-changed-files" to it.toString() }, + coverageCounterType?.let { "coverage-counter-type" to it.stringValue }, *_customInputs.toList().toTypedArray(), ).toTypedArray() ) public override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId) + public sealed class CoverageCounterType( + public val stringValue: String, + ) { + public object Instruction : KoverReportV1.CoverageCounterType("INSTRUCTION") + + public object Line : KoverReportV1.CoverageCounterType("LINE") + + public object Branch : KoverReportV1.CoverageCounterType("BRANCH") + + public class Custom( + customStringValue: String, + ) : KoverReportV1.CoverageCounterType(customStringValue) + } + public class Outputs( stepId: String, ) : Action.Outputs(stepId) { From c6c5d47a4ec2b7e60556938857bcfe195ea453c2 Mon Sep 17 00:00:00 2001 From: Piotr Krzeminski Date: Fri, 17 Feb 2023 09:25:33 +0100 Subject: [PATCH 25/25] chore: bump version to 0.37.0 --- library/build.gradle.kts | 2 +- .../githubactions/docsnippets/GettingStartedSnippets.kt | 2 +- mkdocs.yml | 2 +- .../it/krzeminski/githubactions/scriptgenerator/Version.kt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/build.gradle.kts b/library/build.gradle.kts index 1db7294723..fdececa6a1 100644 --- a/library/build.gradle.kts +++ b/library/build.gradle.kts @@ -16,7 +16,7 @@ plugins { } group = "it.krzeminski" -version = "0.36.0" +version = "0.37.0" dependencies { implementation("org.snakeyaml:snakeyaml-engine:2.6") diff --git a/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/GettingStartedSnippets.kt b/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/GettingStartedSnippets.kt index 298acd6371..631931e7a4 100644 --- a/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/GettingStartedSnippets.kt +++ b/library/src/test/kotlin/it/krzeminski/githubactions/docsnippets/GettingStartedSnippets.kt @@ -19,7 +19,7 @@ class GettingStartedSnippets : FunSpec({ // --8<-- [start:gettingStarted1] #!/usr/bin/env kotlin -@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.36.0") +@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.37.0") // --8<-- [end:gettingStarted1] */ diff --git a/mkdocs.yml b/mkdocs.yml index 8cb5639ad4..e9a8f32708 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -54,7 +54,7 @@ nav: - Projects using this library: 'projects-using-this-library.md' extra: - version: 0.36.0 + version: 0.37.0 # branch or tag name - the script-generator may have not yet updated to a breaking change in the library scriptGeneratorVersion: 0.22.0 diff --git a/script-generator/src/main/kotlin/it/krzeminski/githubactions/scriptgenerator/Version.kt b/script-generator/src/main/kotlin/it/krzeminski/githubactions/scriptgenerator/Version.kt index aaf2d6f711..aae5df628a 100644 --- a/script-generator/src/main/kotlin/it/krzeminski/githubactions/scriptgenerator/Version.kt +++ b/script-generator/src/main/kotlin/it/krzeminski/githubactions/scriptgenerator/Version.kt @@ -1,3 +1,3 @@ package it.krzeminski.githubactions.scriptgenerator -val LIBRARY_VERSION = "0.36.0" +val LIBRARY_VERSION = "0.37.0"