diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 05bbcb9bbd..0451b1482d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,6 +107,9 @@ jobs: status: ${{ steps.status.outputs.status }} steps: + - name: Clone Repo + uses: actions/checkout@v4.1.7 + - name: Download App Bundle uses: actions/download-artifact@v4.1.7 with: diff --git a/buildSrc/src/main/kotlin/ProjectSettings.kt b/buildSrc/src/main/kotlin/ProjectSettings.kt index 06b5ea98b4..e6a7c2596b 100644 --- a/buildSrc/src/main/kotlin/ProjectSettings.kt +++ b/buildSrc/src/main/kotlin/ProjectSettings.kt @@ -61,14 +61,14 @@ object ProjectSettings { @Suppress("TooGenericExceptionCaught", "UnstableApiUsage") private fun Project.setIOSVersion(versionName: String) = try { - project.providers.exec { - workingDir = File("${project.rootDir}/ios") - commandLine("agvtool new-version -all ${getVersionCode(project)}".split(" ")) - } - project.providers.exec { - workingDir = File("${project.rootDir}/ios") + providers.exec { + workingDir = File("${rootDir}/ios") + commandLine("agvtool new-version -all ${getVersionCode(this@setIOSVersion)}".split(" ")) + }.standardOutput.asText.get() // needed for completing the execution + providers.exec { + workingDir = File("${rootDir}/ios") commandLine("agvtool new-marketing-version $versionName".split(" ")) - } + }.standardOutput.asText.get() // needed for completing the execution } catch (e: Exception) { println("agvtool exist only mac environment") println(e.localizedMessage)