diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0142bb1..426a09f 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -161,7 +161,7 @@ - + diff --git a/tools/tagger-plugin/src/main/kotlin/com/zegreatrob/tools/tagger.gradle.kts b/tools/tagger-plugin/src/main/kotlin/com/zegreatrob/tools/tagger.gradle.kts index 27d44d2..6d9ead3 100644 --- a/tools/tagger-plugin/src/main/kotlin/com/zegreatrob/tools/tagger.gradle.kts +++ b/tools/tagger-plugin/src/main/kotlin/com/zegreatrob/tools/tagger.gradle.kts @@ -53,9 +53,27 @@ tasks { dependsOn(tag) val githubRepository = System.getenv("GITHUB_REPOSITORY") commandLine( - "gh api --method POST -H \"Accept: application/vnd.github+json\" -H \"X-GitHub-Api-Version: 2022-11-28\" /repos/$githubRepository/releases -f tag_name='${tagger.version}' -f name='${tagger.version}' -f body='${tagger.version} -F draft=false -F prerelease=false -F generate_release_notes=false" - .split(" ") - .also { println("release command = $it") }, + "gh", + "api", + "--method", + "POST", + "-H", + "Accept: application/vnd.github+json", + "-H", + "X-GitHub-Api-Version: 2022-11-28", + "/repos/$githubRepository/releases", + "-f", + "tag_name='${tagger.version}'", + "-f", + "name='${tagger.version}'", + "-f", + "body='${tagger.version}", + "-F", + "draft=false", + "-F", + "prerelease=false", + "-F", + "generate_release_notes=false", ) }