Skip to content

Commit

Permalink
Fix github build
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Jul 14, 2024
1 parent ee55476 commit 50908b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/versioning.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 50908b9

Please sign in to comment.