Fix github build

This commit is contained in:
Lukas Rieger (Blue) 2024-07-15 00:37:56 +02:00
parent ee55476580
commit 50908b9f6a
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ jobs:
21
cache: 'gradle'
- name: Build with Gradle
run: ./gradlew clean spotlessCheck test build
run: ./gradlew clean spotlessCheck test release
- uses: actions/upload-artifact@v4
with:
name: artifacts

View File

@ -26,7 +26,7 @@ fun Project.gitVersion(): String {
private fun Project.runCommand(cmd: String, fallback: String? = null): String {
ProcessBuilder(cmd.split("\\s(?=(?:[^'\"`]*(['\"`])[^'\"`]*\\1)*[^'\"`]*$)".toRegex()))
.directory(rootProject.projectDir)
.directory(projectDir)
.redirectOutput(ProcessBuilder.Redirect.PIPE)
.redirectError(ProcessBuilder.Redirect.PIPE)
.start()