diff --git a/actions/madhead/intellij-http-client-action/v233/action b/actions/madhead/intellij-http-client-action/v233/action new file mode 100644 index 000000000..e69de29bb diff --git a/actions/madhead/intellij-http-client-action/v233/commit-hash.txt b/actions/madhead/intellij-http-client-action/v233/commit-hash.txt new file mode 100644 index 000000000..d6e5aa4d3 --- /dev/null +++ b/actions/madhead/intellij-http-client-action/v233/commit-hash.txt @@ -0,0 +1 @@ +395465a3297fcc764dd362db4628a193df869cbd \ No newline at end of file diff --git a/docs/supported-actions.md b/docs/supported-actions.md index abdd2501b..ca7d591fc 100644 --- a/docs/supported-actions.md +++ b/docs/supported-actions.md @@ -96,7 +96,7 @@ Click on a version to see the binding's code. * [setup-julia](https://github.com/julia-actions/setup-julia) - v1: [`SetupJuliaV1`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/juliaactions/SetupJuliaV1.kt) * madhead * [check-gradle-version](https://github.com/madhead/check-gradle-version) - v1 ✅: [`CheckGradleVersionV1`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/CheckGradleVersionV1.kt) - * [intellij-http-client-action](https://github.com/madhead/intellij-http-client-action) - v0 ✅: [`IntellijHttpClientActionV0`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV0.kt), v231 ✅: [`IntellijHttpClientActionV231`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV231.kt) + * [intellij-http-client-action](https://github.com/madhead/intellij-http-client-action) - v0 ✅: [`IntellijHttpClientActionV0`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV0.kt), v231 ✅: [`IntellijHttpClientActionV231`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV231.kt), v233 ✅: [`IntellijHttpClientActionV233`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV233.kt) * [semver-utils](https://github.com/madhead/semver-utils) - v2 ✅: [`SemverUtilsV2`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/SemverUtilsV2.kt), v3 ✅: [`SemverUtilsV3`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/SemverUtilsV3.kt) * mi-kas * [kover-report](https://github.com/mi-kas/kover-report) - v1 ✅: [`KoverReportV1`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/mikas/KoverReportV1.kt) @@ -140,6 +140,6 @@ Click on a version to see the binding's code. Number of bindings available: * counting by actions: 84 -* counting each version separately: 143 +* counting each version separately: 144 Actions [providing typings](https://github.com/typesafegithub/github-actions-typing/) (marked with ✅ on the above list): 18 diff --git a/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV0.kt b/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV0.kt index 6090a5536..840094c9f 100644 --- a/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV0.kt +++ b/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV0.kt @@ -31,8 +31,8 @@ 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"), + message = "This action has a newer major version: IntellijHttpClientActionV233", + replaceWith = ReplaceWith("IntellijHttpClientActionV233"), ) public data class IntellijHttpClientActionV0 private constructor( /** diff --git a/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV231.kt b/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV231.kt index 5f71010e7..6223e7110 100644 --- a/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV231.kt +++ b/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV231.kt @@ -4,6 +4,7 @@ @file:Suppress( "DataClassPrivateConstructor", "UNUSED_PARAMETER", + "DEPRECATION", ) package io.github.typesafegithub.workflows.actions.madhead @@ -12,6 +13,7 @@ import io.github.typesafegithub.workflows.domain.actions.Action import io.github.typesafegithub.workflows.domain.actions.RegularAction import java.util.LinkedHashMap import kotlin.Boolean +import kotlin.Deprecated import kotlin.Int import kotlin.String import kotlin.Suppress @@ -28,6 +30,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: IntellijHttpClientActionV233", + replaceWith = ReplaceWith("IntellijHttpClientActionV233"), +) public data class IntellijHttpClientActionV231 private constructor( /** * HTTP file paths diff --git a/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV233.kt b/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV233.kt new file mode 100644 index 000000000..e6378a146 --- /dev/null +++ b/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/madhead/IntellijHttpClientActionV233.kt @@ -0,0 +1,154 @@ +// This file was generated using action-binding-generator. Don't change it by hand, otherwise your +// changes will be overwritten with the next binding code regeneration. +// See https://github.com/typesafegithub/github-workflows-kt for more info. +@file:Suppress( + "DataClassPrivateConstructor", + "UNUSED_PARAMETER", +) + +package io.github.typesafegithub.workflows.actions.madhead + +import io.github.typesafegithub.workflows.domain.actions.Action +import io.github.typesafegithub.workflows.domain.actions.RegularAction +import java.util.LinkedHashMap +import kotlin.Boolean +import kotlin.Int +import kotlin.String +import kotlin.Suppress +import kotlin.Unit +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 IntellijHttpClientActionV233 private constructor( + /** + * 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, + /** + * Proxy setting in format 'scheme://login:password@host:port' + */ + public val proxy: String? = 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: IntellijHttpClientActionV233.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 binding + */ + public val _customInputs: Map = mapOf(), + /** + * Allows overriding action's version, for example to use a specific minor version, or a newer + * version that the binding doesn't yet know about + */ + public val _customVersion: String? = null, +) : RegularAction("madhead", "intellij-http-client-action", _customVersion ?: + "v233") { + public constructor( + vararg pleaseUseNamedArguments: Unit, + files: List, + socketTimeout: Int? = null, + connectTimeout: Int? = null, + insecure: Boolean? = null, + env: String? = null, + envFile: String? = null, + envVariables: List? = null, + privateEnvFile: String? = null, + privateEnvVariables: List? = null, + proxy: String? = null, + dockerMode: Boolean? = null, + logLevel: IntellijHttpClientActionV233.LogLevel? = null, + report: Boolean? = null, + _customInputs: Map = mapOf(), + _customVersion: String? = null, + ) : this(files=files, socketTimeout=socketTimeout, connectTimeout=connectTimeout, + insecure=insecure, env=env, envFile=envFile, envVariables=envVariables, + privateEnvFile=privateEnvFile, privateEnvVariables=privateEnvVariables, proxy=proxy, + dockerMode=dockerMode, logLevel=logLevel, report=report, _customInputs=_customInputs, + _customVersion=_customVersion) + + @Suppress("SpreadOperator") + 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") }, + proxy?.let { "proxy" to it }, + dockerMode?.let { "docker_mode" to it.toString() }, + logLevel?.let { "log_level" to it.stringValue }, + report?.let { "report" to it.toString() }, + *_customInputs.toList().toTypedArray(), + ).toTypedArray() + ) + + override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) + + public sealed class LogLevel( + public val stringValue: String, + ) { + public object Basic : IntellijHttpClientActionV233.LogLevel("BASIC") + + public object Headers : IntellijHttpClientActionV233.LogLevel("HEADERS") + + public object Verbose : IntellijHttpClientActionV233.LogLevel("VERBOSE") + + public class Custom( + customStringValue: String, + ) : IntellijHttpClientActionV233.LogLevel(customStringValue) + } +}