-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wrappers): add supercharge/mongodb-github-action@1.7.0
- Loading branch information
Showing
3 changed files
with
78 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
...y/src/gen/kotlin/it/krzeminski/githubactions/actions/supercharge/MongodbGithubActionV1.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters