Skip to content

Commit

Permalink
Pass Xcode version as env variable to release lane
Browse files Browse the repository at this point in the history
  • Loading branch information
evsaev committed May 17, 2022
1 parent b7f2411 commit 446483e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 446483e

Please sign in to comment.