Created
November 26, 2022 00:26
-
-
Save comdotlinux/a40e6206b7ffec6c4f91c03e7d387e00 to your computer and use it in GitHub Desktop.
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