From 446483ee47828d3c4633b30d864a399c0ced6c1f Mon Sep 17 00:00:00 2001 From: Pavel Evsaev Date: Tue, 17 May 2022 15:12:55 +0400 Subject: [PATCH] Pass `Xcode` version as env variable to release lane --- .github/workflows/publish-release.yml | 1 + fastlane/Fastfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 5c46406cefc..697f38e8e6a 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -28,6 +28,7 @@ jobs: - name: "Fastlane - Publish Release" if: startsWith(github.event.pull_request.head.ref, 'release/') env: + XCODE_VERSION: "13.0" GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} run: bundle exec fastlane publish_release version:${{ env.RELEASE_VERSION }} diff --git a/fastlane/Fastfile b/fastlane/Fastfile index aa8f6bf4ea6..9e66fb822d8 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -115,7 +115,7 @@ lane :publish_release do |options| UI.user_error!("You need to pass the version of the release") unless version.length > 0 # Create XCFrameworks - xcversion(version: "13.0") + xcversion(version: xcode_version) sh("cd .. && make frameworks") changes = read_changelog(version: version)