Skip to content

Instantly share code, notes, and snippets.

@comdotlinux
Created November 26, 2022 00:26
Embed
What would you like to do?
Simple External Command Execution Using Gradle
tasks.register("runBuild") {
group = "com.linux"
description = "Trigger Build Execution On Github Actions"
doLast {
val command = """gh workflow run build.yaml --ref master --field version=0.0.1"""
exec {
logger.lifecycle("Running Command $command")
commandLine = command.split(" ")
logger.lifecycle("Command executed.")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment