Skip to content

Commit

Permalink
feat(wrappers): add supercharge/mongodb-github-action@1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
krzema12 committed May 13, 2022
1 parent f3095a0 commit b957e2f
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/supported-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,12 @@ Click on a version to see the wrapper's code.
* [pull-request](https://github.com/repo-sync/pull-request) - v2: [`PullRequestV2`](https://github.com/krzema12/github-actions-kotlin-dsl/blob/v{{ version }}/library/src/gen/kotlin/it/krzeminski/githubactions/actions/reposync/PullRequestV2.kt)
* SamKirkland
* [FTP-Deploy-Action](https://github.com/SamKirkland/FTP-Deploy-Action) - v4.3.0: [`FTPDeployActionV4`](https://github.com/krzema12/github-actions-kotlin-dsl/blob/v{{ version }}/library/src/gen/kotlin/it/krzeminski/githubactions/actions/samkirkland/FTPDeployActionV4.kt)
* supercharge
* [mongodb-github-action](https://github.com/supercharge/mongodb-github-action) - 1.7.0: [`MongodbGithubActionV1`](https://github.com/krzema12/github-actions-kotlin-dsl/blob/v{{ version }}/library/src/gen/kotlin/it/krzeminski/githubactions/actions/supercharge/MongodbGithubActionV1.kt)

## Statistics

Number of wrappers available:

* counting by actions: 59
* counting each version separately: 70
* counting by actions: 60
* counting each version separately: 71
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// 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.supercharge

import it.krzeminski.githubactions.actions.Action
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.collections.toList
import kotlin.collections.toTypedArray

/**
* Action: MongoDB in GitHub Actions
*
* Start a MongoDB server (on default port 27017 or a custom port)
*
* [Action on GitHub](https://github.com/supercharge/mongodb-github-action)
*/
public class MongodbGithubActionV1(
/**
* MongoDB version to use (default "latest")
*/
public val mongodbVersion: String? = null,
/**
* MongoDB replica set name (no replica set by default)
*/
public val mongodbReplicaSet: String? = null,
/**
* MongoDB port to use (default 27017)
*/
public val mongodbPort: Int? = null,
/**
* MongoDB db to create (default: none)
*/
public val mongodbDb: String? = null,
/**
* MongoDB root username (default: none)
*/
public val mongodbUsername: String? = null,
/**
* MongoDB root password (default: none)
*/
public val mongodbPassword: String? = null,
/**
* Type-unsafe map where you can put any inputs that are not yet supported by the wrapper
*/
public val _customInputs: Map<String, String> = 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
*/
_customVersion: String? = null,
) : Action("supercharge", "mongodb-github-action", _customVersion ?: "1.7.0") {
@Suppress("SpreadOperator")
public override fun toYamlArguments() = linkedMapOf(
*listOfNotNull(
mongodbVersion?.let { "mongodb-version" to it },
mongodbReplicaSet?.let { "mongodb-replica-set" to it },
mongodbPort?.let { "mongodb-port" to it.toString() },
mongodbDb?.let { "mongodb-db" to it },
mongodbUsername?.let { "mongodb-username" to it },
mongodbPassword?.let { "mongodb-password" to it },
*_customInputs.toList().toTypedArray(),
).toTypedArray()
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -742,4 +742,10 @@ val wrappersToGenerate = listOf(
"security" to EnumTyping("Security", listOf("strict", "loose")),
),
),
WrapperRequest(
ActionCoords("supercharge", "mongodb-github-action", "1.7.0"),
mapOf(
"mongodb-port" to IntegerTyping,
)
),
)

0 comments on commit b957e2f

Please sign in to comment.