Simple External Command Execution Using Gradle
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
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