From efd54ab5ef830a9f544d1b13f804b17cad6f8f01 Mon Sep 17 00:00:00 2001 From: Egor Egorov Date: Fri, 13 Dec 2024 17:37:59 +0200 Subject: [PATCH] Test --- .../workflows/prepare-xcframework-release.yml | 58 +++++++++---------- fastlane/Fastfile | 18 ++++++ fastlane/README.md | 8 +++ 3 files changed, 55 insertions(+), 29 deletions(-) diff --git a/.github/workflows/prepare-xcframework-release.yml b/.github/workflows/prepare-xcframework-release.yml index 8e07b58d5..b095843d6 100644 --- a/.github/workflows/prepare-xcframework-release.yml +++ b/.github/workflows/prepare-xcframework-release.yml @@ -93,34 +93,34 @@ jobs: shell: bash - name: Create Pull Request - uses: peter-evans/create-pull-request@v6 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - branch: "release/xcf/${{ steps.fetch_semver.outputs.semver}}" - title: 'GliaWidgets SDK Release ${{ steps.fetch_semver.outputs.semver}}' - commit-message: | - GliaWidgets SDK XCFramework Release ${{ steps.fetch_semver.outputs.semver}} - base: 'master' + run: | + release_branch_name="release/xcf/${{ steps.fetch_semver.outputs.semver}}" + fastlane ios create_pr branch:"$release_branch_name" title:"GliaWidgets SDK XCFramework Release ${{ steps.fetch_semver.outputs.semver}}" base:'master' - - uses: actions/create-release@v1 - id: create_release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.fetch_semver.outputs.semver}} - release_name: "GliaWidgetsSDK Release ${{ steps.fetch_semver.outputs.semver}}" - draft: true - prerelease: false - body: | - GliaWidgetsSDK Release - xcframework checksum: `${{ steps.calculate_xcf_checksum.outputs.checksum }}` +# with: +# branch: "release/xcf/${{ steps.fetch_semver.outputs.semver}}" +# title: "GliaWidgets SDK XCFramework Release ${{ steps.fetch_semver.outputs.semver}}" +# base: 'master' +# token: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: "xcf/GliaWidgetsXcf.xcframework.zip" - asset_name: "GliaWidgetsXcf.xcframework.zip" - asset_content_type: "application/zip" +# - uses: actions/create-release@v1 +# id: create_release +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# tag_name: ${{ steps.fetch_semver.outputs.semver}} +# release_name: "GliaWidgetsSDK Release ${{ steps.fetch_semver.outputs.semver}}" +# draft: true +# prerelease: false +# body: | +# GliaWidgetsSDK Release +# xcframework checksum: `${{ steps.calculate_xcf_checksum.outputs.checksum }}` +# +# - uses: actions/upload-release-asset@v1.0.1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.create_release.outputs.upload_url }} +# asset_path: "xcf/GliaWidgetsXcf.xcframework.zip" +# asset_name: "GliaWidgetsXcf.xcframework.zip" +# asset_content_type: "application/zip" diff --git a/fastlane/Fastfile b/fastlane/Fastfile index d01be922e..987f686ec 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -117,4 +117,22 @@ platform :ios do sh("bash ../scripts/update_core_sdk_version.sh '#{project_version}' '#{core_sdk_version}' '#{core_sdk_checksum}'") end + + desc "Creates a pull request in the repository." + lane :create_pr do |options| + sh "git fetch" + sh "git checkout release/xcf/2.8.3" + + branch_name = options[:branch] + title = options[:title] + base = options[:base] + + create_pull_request( + repo: 'salemove/ios-sdk-widgets', + title: title, + head: branch_name, + base: base, + team_reviewers: [] + ) + end end diff --git a/fastlane/README.md b/fastlane/README.md index f1e044436..65b789204 100644 --- a/fastlane/README.md +++ b/fastlane/README.md @@ -61,6 +61,14 @@ Creates a pull request in the repository with whatever changes have been made. U Creates a pull request in the repository with updates to Core SDK version. +### ios create_pr + +```sh +[bundle exec] fastlane ios create_pr +``` + +Creates a pull request in the repository. + ---- This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.