generate Github Workflows
fun generateGithubWorkflows(jdk: String = "15", runners: List<String> = listOf("ubuntu-latest"), scheduling: Scheduling? = Scheduling.Weekly(), baseDir: File = rootProjectDir, branch: String? = null, force: Boolean = false, block: GithubWorkflowGenerator.() -> Unit)
Content copied to clipboard
Configure GitHub workflow generation
Parameters
jdk
the JDK version to use
runner
the GitHub Actions runner OSs to use. Multiple OSs will be done in a matrix. Must have at least one element.
scheduling
how often to schedule runs, or null
to not schedule any
baseDir
the git root, workflows will be generated in $baseDir/.github/workflows
.
branch
the branch to use for scheduled runs, or null
to use whatever the @actions/checkout
pulls by default
force
whether to overwrite existing workflows of the same name
Sources
jvm source
Link copied to clipboard